Blender  V3.3
bpy_capi_utils.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
7 #pragma once
8 
9 #if PY_VERSION_HEX < 0x03090000
10 # error "Python 3.9 or greater is required, you'll need to update your Python."
11 #endif
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 struct EnumPropertyItem;
18 struct ReportList;
19 
20 /* error reporting */
21 short BPy_reports_to_error(struct ReportList *reports, PyObject *exception, bool clear);
25 void BPy_reports_write_stdout(const struct ReportList *reports, const char *header);
26 bool BPy_errors_to_report_ex(struct ReportList *reports,
27  const char *error_prefix,
28  bool use_full,
29  bool use_location);
44 bool BPy_errors_to_report(struct ReportList *reports);
45 
46 struct bContext *BPY_context_get(void);
47 
48 extern void bpy_context_set(struct bContext *C, PyGILState_STATE *gilstate);
52 extern void bpy_context_clear(struct bContext *C, const PyGILState_STATE *gilstate);
53 
54 #ifdef __cplusplus
55 }
56 #endif
#define C
Definition: RandGen.cpp:25
struct bContext * BPY_context_get(void)
short BPy_reports_to_error(struct ReportList *reports, PyObject *exception, bool clear)
void bpy_context_clear(struct bContext *C, const PyGILState_STATE *gilstate)
void bpy_context_set(struct bContext *C, PyGILState_STATE *gilstate)
bool BPy_errors_to_report(struct ReportList *reports)
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, bool use_full, bool use_location)
static void clear(Message *msg)
Definition: msgfmt.c:278