diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-03-18 04:19:03 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-03-18 04:19:03 +0300 |
commit | e392bb49372a76cb4abd7d64d73e37f9c7fcb806 (patch) | |
tree | 1d4a1f3dadf28d8f897ee87c70cfe4be462fdb2b /source/blender/python/generic/py_capi_utils.h | |
parent | d863b5182e911b63f874c075f6c24a4c5933811e (diff) |
PyAPI: add BPY_execute_string_as_string
Utility to execute a string and get the resulting string,
matching BPY_execute_string_as_number.
Not used just yet but generally useful function.
Diffstat (limited to 'source/blender/python/generic/py_capi_utils.h')
-rw-r--r-- | source/blender/python/generic/py_capi_utils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/python/generic/py_capi_utils.h b/source/blender/python/generic/py_capi_utils.h index e0c66641e54..3f89e1d82a0 100644 --- a/source/blender/python/generic/py_capi_utils.h +++ b/source/blender/python/generic/py_capi_utils.h @@ -81,6 +81,7 @@ int PyC_FlagSet_ToBitfield(PyC_FlagSet *items, PyObject *value, int *r_val PyObject *PyC_FlagSet_FromBitfield(PyC_FlagSet *items, int flag); bool PyC_RunString_AsNumber(const char *expr, const char *filename, double *r_value); +bool PyC_RunString_AsString(const char *expr, const char *filename, char **r_value); int PyC_ParseBool(PyObject *o, void *p); |