Blender V5.0
bpy_driver.hh File Reference
#include <Python.h>

Go to the source code of this file.

Functions

int bpy_pydriver_create_dict ()
bool BPY_driver_secure_bytecode_test_ex (PyObject *expr_code, PyObject *py_namespace_array[], const bool verbose, const char *error_prefix)
bool BPY_driver_secure_bytecode_test (PyObject *expr_code, PyObject *py_namespace, const bool verbose)

Variables

PyObject * bpy_pydriver_Dict

Function Documentation

◆ BPY_driver_secure_bytecode_test()

bool BPY_driver_secure_bytecode_test ( PyObject * expr_code,
PyObject * py_namespace,
const bool verbose )
extern

◆ BPY_driver_secure_bytecode_test_ex()

bool BPY_driver_secure_bytecode_test_ex ( PyObject * expr_code,
PyObject * py_namespace_array[],
const bool verbose,
const char * error_prefix )
extern

Definition at line 423 of file bpy_driver.cc.

References i, is_opcode_secure(), name, Py_DECREF(), UNLIKELY, and verbose.

Referenced by BPY_driver_exec(), and BPY_driver_secure_bytecode_test().

◆ bpy_pydriver_create_dict()

int bpy_pydriver_create_dict ( )
nodiscard

For faster execution we keep a special dictionary for py-drivers, with the needed modules and aliases.

Definition at line 58 of file bpy_driver.cc.

References bpy_pydriver_Dict, bpy_pydriver_Dict__whitelist, i, mod, and Py_DECREF().

Referenced by bpy_app_driver_dict_get(), BPY_driver_exec(), and BPY_driver_secure_bytecode_test().

Variable Documentation

◆ bpy_pydriver_Dict

PyObject* bpy_pydriver_Dict
extern