Blender V5.3
bpy_driver_bytecode.cc File Reference
#include <Python.h>
#include "bpy_driver_bytecode.hh"
#include <opcode.h>
#include <internal/pycore_code.h>

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define USE_BYTECODE_SECURE
#define Py_BUILD_CORE
#define OK_OP(op)

Functions

static bool blender::is_opcode_secure (const int opcode)
bool blender::BPY_driver_secure_bytecode_test_ex (PyObject *expr_code, PyObject *py_namespace_array[], const bool verbose, const char *error_prefix)

Detailed Description

Python OP-CODE filtering.

Note
This is in its own file to avoid naming collisions with common ID's such as SWAP.

Definition in file bpy_driver_bytecode.cc.

Macro Definition Documentation

◆ OK_OP

#define OK_OP ( op)
Value:
case op: \
return true;

Referenced by blender::is_opcode_secure().

◆ Py_BUILD_CORE

#define Py_BUILD_CORE

Definition at line 23 of file bpy_driver_bytecode.cc.

◆ USE_BYTECODE_SECURE

#define USE_BYTECODE_SECURE

Definition at line 17 of file bpy_driver_bytecode.cc.