Blender V4.3
BPY_extern_run.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
23#pragma once
24
25#include "BLI_sys_types.h"
26
27#include "BLI_compiler_attrs.h"
28
29struct ReportList;
30struct Text;
31struct bContext;
32
33/* `bpy_interface_run.cc` */
34
35/* -------------------------------------------------------------------- */
56bool BPY_run_filepath(bContext *C, const char *filepath, ReportList *reports) ATTR_NONNULL(1, 2);
74bool BPY_run_text(bContext *C, Text *text, ReportList *reports, bool do_jump) ATTR_NONNULL(1, 2);
75
78/* -------------------------------------------------------------------- */
91bool BPY_run_string_exec(bContext *C, const char *imports[], const char *expr);
98bool BPY_run_string_eval(bContext *C, const char *imports[], const char *expr);
99
102/* -------------------------------------------------------------------- */
123
135 const char *imports[],
136 const char *expr,
137 BPy_RunErrInfo *err_info,
138 double *r_value) ATTR_NONNULL(1, 3, 5);
152 const char *imports[],
153 const char *expr,
154 BPy_RunErrInfo *err_info,
155 intptr_t *r_value) ATTR_NONNULL(1, 3, 5);
167 const char *imports[],
168 const char *expr,
169 BPy_RunErrInfo *err_info,
170 char **r_value,
171 size_t *r_value_len) ATTR_NONNULL(1, 3, 5, 6);
172
175 const char *imports[],
176 const char *expr,
177 BPy_RunErrInfo *err_info,
178 char **r_value) ATTR_NONNULL(1, 3, 5);
179
192 const char *imports[],
193 const char *expr,
194 BPy_RunErrInfo *err_info,
195 char **r_value,
196 size_t *r_value_len) ATTR_NONNULL(1, 3, 5, 6);
197
200 const char *imports[],
201 const char *expr,
202 BPy_RunErrInfo *err_info,
203 char **r_value) ATTR_NONNULL(1, 3, 5);
204
#define ATTR_NONNULL(...)
bool bool bool bool bool bool BPY_run_string_as_string_or_none(bContext *C, const char *imports[], const char *expr, BPy_RunErrInfo *err_info, char **r_value) ATTR_NONNULL(1
bool bool BPY_run_string_as_intptr(bContext *C, const char *imports[], const char *expr, BPy_RunErrInfo *err_info, intptr_t *r_value) ATTR_NONNULL(1
bool bool bool BPY_run_string_as_string_and_len(bContext *C, const char *imports[], const char *expr, BPy_RunErrInfo *err_info, char **r_value, size_t *r_value_len) ATTR_NONNULL(1
bool bool BPY_run_text(bContext *C, Text *text, ReportList *reports, bool do_jump) ATTR_NONNULL(1
bool BPY_run_filepath(bContext *C, const char *filepath, ReportList *reports) ATTR_NONNULL(1
bool BPY_run_string_eval(bContext *C, const char *imports[], const char *expr)
bool BPY_run_string_exec(bContext *C, const char *imports[], const char *expr)
bool bool bool bool bool BPY_run_string_as_string_and_len_or_none(bContext *C, const char *imports[], const char *expr, BPy_RunErrInfo *err_info, char **r_value, size_t *r_value_len) ATTR_NONNULL(1
bool bool bool bool BPY_run_string_as_string(bContext *C, const char *imports[], const char *expr, BPy_RunErrInfo *err_info, char **r_value) ATTR_NONNULL(1
bool BPY_run_string_as_number(bContext *C, const char *imports[], const char *expr, BPy_RunErrInfo *err_info, double *r_value) ATTR_NONNULL(1
_W64 int intptr_t
Definition stdint.h:118
const char * report_prefix
ReportList * reports