diff options
Diffstat (limited to 'source/blender/python/BPY_extern_run.h')
-rw-r--r-- | source/blender/python/BPY_extern_run.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source/blender/python/BPY_extern_run.h b/source/blender/python/BPY_extern_run.h index 67ac56f2798..5f12ada4ff2 100644 --- a/source/blender/python/BPY_extern_run.h +++ b/source/blender/python/BPY_extern_run.h @@ -37,6 +37,12 @@ bool BPY_run_text(struct bContext *C, struct ReportList *reports, const bool do_jump); +/* Use the 'eval' for simple single-line expressions, + * otherwise 'exec' for full multi-line scripts. */ +bool BPY_run_string_exec(struct bContext *C, const char *imports[], const char *expr); +bool BPY_run_string_eval(struct bContext *C, const char *imports[], const char *expr); + +/* Run, evaluating to fixed type result. */ bool BPY_run_string_as_number(struct bContext *C, const char *imports[], const char *expr, @@ -59,10 +65,6 @@ bool BPY_run_string_as_string(struct bContext *C, const char *report_prefix, char **r_value); -bool BPY_run_string_ex(struct bContext *C, const char *imports[], const char *expr, bool use_eval); - -bool BPY_run_string(struct bContext *C, const char *imports[], const char *expr); - #ifdef __cplusplus } /* extern "C" */ #endif |