Blender V4.3
bpy_driver.hh File Reference
#include <stdbool.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 389 of file bpy_driver.cc.

References is_opcode_secure(), UNLIKELY, and verbose.

Referenced by BPY_driver_exec(), and BPY_driver_secure_bytecode_test().

◆ bpy_pydriver_create_dict()

int bpy_pydriver_create_dict ( )

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

Definition at line 52 of file bpy_driver.cc.

References arg_str, bpy_pydriver_Dict, bpy_pydriver_Dict__whitelist, and mod().

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