From 576d385ddb581190d21febfa724086797c47492a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 11 Dec 2019 18:04:44 +1100 Subject: PyAPI: add utility functions get the size from an evaluated string Allows including null bytes in the resulting string. --- source/blender/python/BPY_extern.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/blender/python/BPY_extern.h') diff --git a/source/blender/python/BPY_extern.h b/source/blender/python/BPY_extern.h index 11c06f6191e..be2fd6c4e53 100644 --- a/source/blender/python/BPY_extern.h +++ b/source/blender/python/BPY_extern.h @@ -85,6 +85,12 @@ bool BPY_execute_string_as_intptr(struct bContext *C, const char *expr, const bool verbose, intptr_t *r_value); +bool BPY_execute_string_as_string_and_size(struct bContext *C, + const char *imports[], + const char *expr, + const bool verbose, + char **r_value, + size_t *r_value_size); bool BPY_execute_string_as_string(struct bContext *C, const char *imports[], const char *expr, -- cgit v1.2.3