|
Blender
V2.93
|
Go to the source code of this file.
Functions | |
| char * | BPy_enum_as_string (const struct EnumPropertyItem *item) |
| short | BPy_reports_to_error (struct ReportList *reports, PyObject *exception, const bool clear) |
| void | BPy_reports_write_stdout (const struct ReportList *reports, const char *header) |
| bool | BPy_errors_to_report_ex (struct ReportList *reports, const char *error_prefix, const bool use_full, const bool use_location) |
| bool | BPy_errors_to_report_brief_with_prefix (struct ReportList *reports, const char *error_prefix) |
| bool | BPy_errors_to_report (struct ReportList *reports) |
| struct bContext * | BPY_context_get (void) |
| void | bpy_context_set (struct bContext *C, PyGILState_STATE *gilstate) |
| void | bpy_context_clear (struct bContext *C, const PyGILState_STATE *gilstate) |
| void bpy_context_clear | ( | struct bContext * | C, |
| const PyGILState_STATE * | gilstate | ||
| ) |
| struct bContext* BPY_context_get | ( | void | ) |
Definition at line 248 of file bpy_interface.c.
References bpy_context_module, PointerRNA::data, and BPy_StructRNA::ptr.
Referenced by bpy_atexit(), bpy_class_call(), bpy_gizmo_target_set_value(), bpy_lib_load(), bpy_msgbus_publish_rna(), bpy_msgbus_subscribe_rna(), mathutils_rna_matrix_set(), mathutils_rna_vector_set(), mathutils_rna_vector_set_index(), pyop_as_string(), pyop_call(), pyop_poll(), pyrna_enum_as_string(), pyrna_enum_to_py(), pyrna_func_call(), pyrna_prop_array_ass_subscript(), pyrna_prop_to_enum_bitfield(), pyrna_prop_update(), pyrna_py_to_prop(), pyrna_py_to_prop_array_index(), pyrna_register_class(), pyrna_string_to_enum(), pyrna_struct_driver_add(), pyrna_struct_driver_remove(), pyrna_struct_keyframe_insert(), pyrna_struct_keyframe_parse(), and pyrna_unregister_class().
| void bpy_context_set | ( | struct bContext * | C, |
| PyGILState_STATE * | gilstate | ||
| ) |
Definition at line 120 of file bpy_interface.c.
References BPY_context_update(), C, PIL_check_seconds_timer(), and py_call_level.
Referenced by bpy_class_call(), BPY_modules_load_user(), bpy_msgbus_notify(), bpy_prop_enum_itemf_fn(), bpy_prop_update_fn(), BPY_run_string_as_intptr(), BPY_run_string_as_number(), BPY_run_string_as_string_and_size(), bpy_run_string_impl(), cb_region_draw(), cb_wm_cursor_draw(), and python_script_exec().
| char* BPy_enum_as_string | ( | const struct EnumPropertyItem * | item | ) |
| bool BPy_errors_to_report | ( | struct ReportList * | reports | ) |
Definition at line 159 of file bpy_capi_utils.c.
References BPy_errors_to_report_ex(), and NULL.
Referenced by bpy_class_call(), bpy_run_string_impl(), Freestyle::PythonInterpreter::interpretString(), and python_script_exec().
| bool BPy_errors_to_report_brief_with_prefix | ( | struct ReportList * | reports, |
| const char * | error_prefix | ||
| ) |
| bool BPy_errors_to_report_ex | ( | struct ReportList * | reports, |
| const char * | error_prefix, | ||
| const bool | use_full, | ||
| const bool | use_location | ||
| ) |
Definition at line 91 of file bpy_capi_utils.c.
References BKE_report(), BKE_reportf(), NULL, PyC_ExceptionBuffer(), PyC_ExceptionBuffer_Simple(), PyC_FileAndNum(), RPT_ERROR, and TIP_.
Referenced by BPy_errors_to_report().
| short BPy_reports_to_error | ( | struct ReportList * | reports, |
| PyObject * | exception, | ||
| const bool | clear | ||
| ) |
Definition at line 59 of file bpy_capi_utils.c.
References BKE_reports_clear(), BKE_reports_string(), clear(), MEM_freeN, NULL, and RPT_ERROR.
Referenced by bpy_lib_enter(), bpy_lib_write(), pyop_call(), pyrna_func_call(), pyrna_py_to_prop(), pyrna_register_class(), pyrna_struct_driver_add(), pyrna_struct_driver_remove(), pyrna_struct_keyframe_delete(), and pyrna_struct_keyframe_insert().
| void BPy_reports_write_stdout | ( | const struct ReportList * | reports, |
| const char * | header | ||
| ) |