Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-12-11 10:04:44 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-12-11 10:04:44 +0300
commit576d385ddb581190d21febfa724086797c47492a (patch)
tree841744bda1ec26fdd4a9af7113b6fb746a5d53fd /source/blender/python/BPY_extern.h
parentf52d60a21d4d3551190305549dbb2a647a1ae0c9 (diff)
PyAPI: add utility functions get the size from an evaluated string
Allows including null bytes in the resulting string.
Diffstat (limited to 'source/blender/python/BPY_extern.h')
-rw-r--r--source/blender/python/BPY_extern.h6
1 files changed, 6 insertions, 0 deletions
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,