Blender V5.3
bpy_intern_string.cc File Reference
#include <Python.h>
#include "bpy_intern_string.hh"
#include "BLI_utildefines.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define BPY_INTERN_STR(var, str)

Functions

void blender::bpy_intern_string_init ()
void blender::bpy_intern_string_exit ()

Variables

static PyObject * blender::bpy_intern_str_arr [17]
PyObject * blender::bpy_intern_str___annotations__
PyObject * blender::bpy_intern_str___doc__
PyObject * blender::bpy_intern_str___main__
PyObject * blender::bpy_intern_str___module__
PyObject * blender::bpy_intern_str___name__
PyObject * blender::bpy_intern_str___slots__
PyObject * blender::bpy_intern_str_attr
PyObject * blender::bpy_intern_str_bl_property
PyObject * blender::bpy_intern_str_bl_rna
PyObject * blender::bpy_intern_str_bl_target_properties
PyObject * blender::bpy_intern_str_bpy_types
PyObject * blender::bpy_intern_str_frame
PyObject * blender::bpy_intern_str_properties
PyObject * blender::bpy_intern_str_register
PyObject * blender::bpy_intern_str_self
PyObject * blender::bpy_intern_str_depsgraph
PyObject * blender::bpy_intern_str_unregister

Detailed Description

Store python versions of strings frequently used for python lookups to avoid converting, creating the hash and freeing every time as PyDict_GetItemString and PyObject_GetAttrString do.

Definition in file bpy_intern_string.cc.

Macro Definition Documentation

◆ BPY_INTERN_STR

#define BPY_INTERN_STR ( var,
str )
Value:
{ \
var = bpy_intern_str_arr[i++] = PyUnicode_FromString(str); \
} \
(void)0
#define str(s)

Referenced by blender::bpy_intern_string_init().