diff options
Diffstat (limited to 'source/blender/python/BPY_extern.h')
-rw-r--r-- | source/blender/python/BPY_extern.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/python/BPY_extern.h b/source/blender/python/BPY_extern.h index 815beebb159..4006816e788 100644 --- a/source/blender/python/BPY_extern.h +++ b/source/blender/python/BPY_extern.h @@ -72,10 +72,12 @@ void BPY_thread_restore(BPy_ThreadStatePtr tstate); #define BPy_BEGIN_ALLOW_THREADS { BPy_ThreadStatePtr _bpy_saved_tstate = BPY_thread_save(); (void)0 #define BPy_END_ALLOW_THREADS BPY_thread_restore(_bpy_saved_tstate); } (void)0 +bool BPY_execute_filepath(struct bContext *C, const char *filepath, struct ReportList *reports); +bool BPY_execute_text(struct bContext *C, struct Text *text, struct ReportList *reports, const bool do_jump); +bool BPY_execute_string_as_number(struct bContext *C, const char *expr, double *value, const bool verbose); +bool BPY_execute_string_ex(struct bContext *C, const char *expr, bool use_eval); +bool BPY_execute_string(struct bContext *C, const char *expr); -/* 2.5 UI Scripts */ -int BPY_filepath_exec(struct bContext *C, const char *filepath, struct ReportList *reports); -int BPY_text_exec(struct bContext *C, struct Text *text, struct ReportList *reports, const bool do_jump); void BPY_text_free_code(struct Text *text); void BPY_modules_update(struct bContext *C); // XXX - annoying, need this for pointers that get out of date void BPY_modules_load_user(struct bContext *C); @@ -85,10 +87,6 @@ void BPY_app_handlers_reset(const short do_all); void BPY_driver_reset(void); float BPY_driver_exec(struct ChannelDriver *driver, const float evaltime); -int BPY_button_exec(struct bContext *C, const char *expr, double *value, const bool verbose); -int BPY_string_exec_ex(struct bContext *C, const char *expr, bool use_eval); -int BPY_string_exec(struct bContext *C, const char *expr); - void BPY_DECREF(void *pyob_ptr); /* Py_DECREF() */ void BPY_DECREF_RNA_INVALIDATE(void *pyob_ptr); int BPY_context_member_get(struct bContext *C, const char *member, struct bContextDataResult *result); @@ -97,6 +95,8 @@ void BPY_context_update(struct bContext *C); void BPY_id_release(struct ID *id); +bool BPY_string_is_keyword(const char *str); + /* I18n for addons */ #ifdef WITH_INTERNATIONAL const char *BPY_app_translations_py_pgettext(const char *msgctxt, const char *msgid); |