Blender V5.3
bpy_intern_string.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
12
13#include <Python.h>
14
15#include "bpy_intern_string.hh"
16
17#include "BLI_utildefines.hh"
18
19namespace blender {
20
21static PyObject *bpy_intern_str_arr[17];
22
40
42{
43 uint i = 0;
44
45#define BPY_INTERN_STR(var, str) \
46 { \
47 var = bpy_intern_str_arr[i++] = PyUnicode_FromString(str); \
48 } \
49 (void)0
50
68
69#undef BPY_INTERN_STR
70
72}
73
75{
77 while (i--) {
78 Py_DECREF(bpy_intern_str_arr[i]);
79 }
80}
81
82} // namespace blender
#define BPY_INTERN_STR(var, str)
BMesh Iterators.
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
static PyObject * bpy_intern_str_arr[17]
PyObject * bpy_intern_str___slots__
PyObject * bpy_intern_str___doc__
unsigned int uint
Definition BKE_text.h:55
PyObject * bpy_intern_str_depsgraph
PyObject * bpy_intern_str___annotations__
PyObject * bpy_intern_str_frame
PyObject * bpy_intern_str_bpy_types
PyObject * bpy_intern_str___name__
PyObject * bpy_intern_str_attr
PyObject * bpy_intern_str_unregister
PyObject * bpy_intern_str_register
constexpr size_t ARRAY_SIZE(const T(&arg)[N]) noexcept
PyObject * bpy_intern_str_bl_target_properties
PyObject * bpy_intern_str_self
PyObject * bpy_intern_str___main__
PyObject * bpy_intern_str_bl_property
PyObject * bpy_intern_str_properties
void bpy_intern_string_exit()
void bpy_intern_string_init()
PyObject * bpy_intern_str___module__
PyObject * bpy_intern_str_bl_rna