Blender  V3.3
Functions | Variables
bpy_driver.h File Reference
#include <stdbool.h>

Go to the source code of this file.

Functions

int bpy_pydriver_create_dict (void)
 
bool BPY_driver_secure_bytecode_test_ex (PyObject *expr_code, PyObject *namespace_array[], const bool verbose, const char *error_prefix)
 
bool BPY_driver_secure_bytecode_test (PyObject *expr_code, PyObject *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 *  namespace,
const bool  verbose 
)

◆ BPY_driver_secure_bytecode_test_ex()

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

Definition at line 456 of file bpy_driver.c.

References secure_opcodes, UNLIKELY, and verbose.

Referenced by BPY_driver_exec(), and BPY_driver_secure_bytecode_test().

◆ bpy_pydriver_create_dict()

int bpy_pydriver_create_dict ( void  )

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

Definition at line 51 of file bpy_driver.c.

References arg_str, bpy_pydriver_Dict, bpy_pydriver_Dict__whitelist, mod(), names, NULL, and pname.

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