Blender  V3.3
BPY_extern_run.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
21 #pragma once
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 #include "BLI_sys_types.h"
28 
29 #include "BLI_compiler_attrs.h"
30 
31 struct ReportList;
32 struct Text;
33 struct bContext;
34 
35 /* bpy_interface_run.c */
36 
37 /* -------------------------------------------------------------------- */
58 bool BPY_run_filepath(struct bContext *C, const char *filepath, struct ReportList *reports)
59  ATTR_NONNULL(1, 2);
77 bool BPY_run_text(struct bContext *C, struct Text *text, struct ReportList *reports, bool do_jump)
78  ATTR_NONNULL(1, 2);
79 
82 /* -------------------------------------------------------------------- */
92 bool BPY_run_string_exec(struct bContext *C, const char *imports[], const char *expr);
96 bool BPY_run_string_eval(struct bContext *C, const char *imports[], const char *expr);
97 
100 /* -------------------------------------------------------------------- */
113 
116  const char *report_prefix;
117 
119  char **r_string;
120 };
121 
133  const char *imports[],
134  const char *expr,
135  struct BPy_RunErrInfo *err_info,
136  double *r_value) ATTR_NONNULL(1, 3, 5);
150  const char *imports[],
151  const char *expr,
152  struct BPy_RunErrInfo *err_info,
153  intptr_t *r_value) ATTR_NONNULL(1, 3, 5);
165  const char *imports[],
166  const char *expr,
167  struct BPy_RunErrInfo *err_info,
168  char **r_value,
169  size_t *r_value_size) ATTR_NONNULL(1, 3, 5, 6);
170 
173  const char *imports[],
174  const char *expr,
175  struct BPy_RunErrInfo *err_info,
176  char **r_value) ATTR_NONNULL(1, 3, 5);
177 
180 #ifdef __cplusplus
181 } /* extern "C" */
182 #endif
#define ATTR_NONNULL(...)
bool BPY_run_filepath(struct bContext *C, const char *filepath, struct ReportList *reports) ATTR_NONNULL(1
bool bool BPY_run_text(struct bContext *C, struct Text *text, struct ReportList *reports, bool do_jump) ATTR_NONNULL(1
bool BPY_run_string_as_number(struct bContext *C, const char *imports[], const char *expr, struct BPy_RunErrInfo *err_info, double *r_value) ATTR_NONNULL(1
bool bool 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) ATTR_NONNULL(1
bool BPY_run_string_eval(struct bContext *C, const char *imports[], const char *expr)
bool BPY_run_string_exec(struct bContext *C, const char *imports[], const char *expr)
bool bool BPY_run_string_as_intptr(struct bContext *C, const char *imports[], const char *expr, struct BPy_RunErrInfo *err_info, intptr_t *r_value) ATTR_NONNULL(1
bool bool bool bool BPY_run_string_as_string(struct bContext *C, const char *imports[], const char *expr, struct BPy_RunErrInfo *err_info, char **r_value) ATTR_NONNULL(1
#define C
Definition: RandGen.cpp:25
_W64 int intptr_t
Definition: stdint.h:118
const char * report_prefix
struct ReportList * reports
bool use_single_line_error