|
Blender
V2.93
|
#include "BLI_sys_types.h"Go to the source code of this file.
Classes | |
| struct | BPy_RunErrInfo |
Functions | |
| bool | BPY_run_filepath (struct bContext *C, const char *filepath, struct ReportList *reports) |
| bool | BPY_run_text (struct bContext *C, struct Text *text, struct ReportList *reports, const bool do_jump) |
| 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) |
| bool | BPY_run_string_as_number (struct bContext *C, const char *imports[], const char *expr, struct BPy_RunErrInfo *err_info, double *r_value) |
| bool | BPY_run_string_as_intptr (struct bContext *C, const char *imports[], const char *expr, struct BPy_RunErrInfo *err_info, intptr_t *r_value) |
| bool | BPY_run_string_as_string_and_size (struct bContext *C, const char *imports[], const char *expr, struct BPy_RunErrInfo *err_info, char **r_value, size_t *r_value_size) |
| bool | BPY_run_string_as_string (struct bContext *C, const char *imports[], const char *expr, struct BPy_RunErrInfo *err_info, char **r_value) |
| bool BPY_run_filepath | ( | struct bContext * | C, |
| const char * | filepath, | ||
| struct ReportList * | reports | ||
| ) |
Definition at line 215 of file bpy_interface_run.c.
References C, NULL, and python_script_exec().
Referenced by arg_handle_python_file_run(), Freestyle::PythonInterpreter::interpretFile(), and run_pyfile_exec().
| bool BPY_run_string_as_intptr | ( | bContext * | C, |
| const char * | imports[], | ||
| const char * | expr, | ||
| struct BPy_RunErrInfo * | err_info, | ||
| intptr_t * | r_value | ||
| ) |
Support both int and pointers.
Definition at line 413 of file bpy_interface_run.c.
References BLI_assert, bpy_context_clear(), bpy_context_set(), C, PyC_RunString_AsIntPtr(), and run_string_handle_error().
Referenced by ui_tooltip_data_from_tool().
| bool BPY_run_string_as_number | ( | bContext * | C, |
| const char * | imports[], | ||
| const char * | expr, | ||
| struct BPy_RunErrInfo * | err_info, | ||
| double * | r_value | ||
| ) |
Definition at line 335 of file bpy_interface_run.c.
References bpy_context_clear(), bpy_context_set(), C, PyC_RunString_AsNumber(), and run_string_handle_error().
Referenced by ui_number_from_string(), and user_string_to_number().
| bool BPY_run_string_as_string | ( | struct bContext * | C, |
| const char * | imports[], | ||
| const char * | expr, | ||
| struct BPy_RunErrInfo * | err_info, | ||
| char ** | r_value | ||
| ) |
Definition at line 398 of file bpy_interface_run.c.
References BPY_run_string_as_string_and_size(), and C.
Referenced by ui_but_user_menu_add(), and ui_tooltip_data_from_tool().
| bool BPY_run_string_as_string_and_size | ( | bContext * | C, |
| const char * | imports[], | ||
| const char * | expr, | ||
| struct BPy_RunErrInfo * | err_info, | ||
| char ** | r_value, | ||
| size_t * | r_value_size | ||
| ) |
Definition at line 369 of file bpy_interface_run.c.
References BLI_assert, bpy_context_clear(), bpy_context_set(), C, NULL, PyC_RunString_AsStringAndSize(), and run_string_handle_error().
Referenced by BPY_run_string_as_string(), and ui_tooltip_data_from_tool().
| bool BPY_run_string_eval | ( | bContext * | C, |
| const char * | imports[], | ||
| const char * | expr | ||
| ) |
Run an expression, matches: exec(compile(..., "eval"))
Definition at line 276 of file bpy_interface_run.c.
References bpy_run_string_impl(), and C.
Referenced by arg_handle_python_console_run(), BPY_python_start(), Freestyle::PythonInterpreter::interpretString(), script_reload_exec(), WM_exit_ex(), wm_file_read_post(), wm_homefile_read(), and WM_keyconfig_reload().
| bool BPY_run_string_exec | ( | bContext * | C, |
| const char * | imports[], | ||
| const char * | expr | ||
| ) |
Run an entire script, matches: exec(compile(..., "exec"))
Definition at line 284 of file bpy_interface_run.c.
References bpy_run_string_impl(), and C.
Referenced by arg_handle_addons_set(), arg_handle_python_expr_run(), script_reload_exec(), and wm_file_read_post().
| bool BPY_run_text | ( | struct bContext * | C, |
| struct Text * | text, | ||
| struct ReportList * | reports, | ||
| const bool | do_jump | ||
| ) |
Definition at line 220 of file bpy_interface_run.c.
References C, NULL, and python_script_exec().
Referenced by arg_handle_python_text_run(), BPY_modules_load_user(), Freestyle::PythonInterpreter::interpretFile(), Freestyle::PythonInterpreter::interpretText(), and text_run_script().