28#include "RNA_prototypes.hh"
45# pragma clang diagnostic push
46# pragma clang diagnostic ignored "-Wcast-function-type"
48# pragma GCC diagnostic push
49# pragma GCC diagnostic ignored "-Wcast-function-type"
61# pragma clang diagnostic pop
63# pragma GCC diagnostic pop
81 PyObject_GC_UnTrack(self);
83 PyObject_GC_Del(self);
86 PyVarObject_HEAD_INIT(
nullptr, 0)
87 "bpy_rna_data_context",
105 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
139 bpy_rna_data_context_load_doc,
140 ".. method:: temp_data(filepath=None)\n"
142 " A context manager that temporarily creates blender file data.\n"
144 " :arg filepath: The file path for the newly temporary data. "
145 "When None, the path of the currently open file is used.\n"
146 " :type filepath: str | bytes | None\n"
148 " :return: Blend file data which is freed once the context exists.\n"
149 " :rtype: :class:`bpy.types.BlendData`\n");
155 static const char *_keywords[] = {
"filepath",
nullptr};
156 static _PyArg_Parser _parser = {
164 if (!_PyArg_ParseTupleAndKeywordsFast(
175 return (PyObject *)
ret;
187 BLI_assert(!PyObject_GC_IsTracked((PyObject *)self));
188 PyObject_GC_Track(self);
202# pragma clang diagnostic push
203# pragma clang diagnostic ignored "-Wcast-function-type"
205# pragma GCC diagnostic push
206# pragma GCC diagnostic ignored "-Wcast-function-type"
213 METH_STATIC | METH_VARARGS | METH_KEYWORDS,
214 bpy_rna_data_context_load_doc,
219# pragma clang diagnostic pop
221# pragma GCC diagnostic pop
void BKE_main_free(Main *bmain)
char * STRNCPY(char(&dst)[N], const char *src)
PyDoc_STRVAR(FalseBP1D___doc__, "Class hierarchy: :class:`freestyle.types.BinaryPredicate1D` > :class:`FalseBP1D`\n" "\n" ".. method:: __call__(inter1, inter2)\n" "\n" " Always returns false.\n" "\n" " :arg inter1: The first Interface1D object.\n" " :type inter1: :class:`freestyle.types.Interface1D`\n" " :arg inter2: The second Interface1D object.\n" " :type inter2: :class:`freestyle.types.Interface1D`\n" " :return: False.\n" " :rtype: bool\n")
PyObject * pyrna_struct_CreatePyObject(PointerRNA *ptr)
int BPY_rna_data_context_type_ready()
static PyObject * bpy_rna_data_context_enter(BPy_DataContext *self)
static int bpy_rna_data_context_clear(BPy_DataContext *self)
static PyTypeObject bpy_rna_data_context_Type
static PyObject * bpy_rna_data_context_exit(BPy_DataContext *self, PyObject *args)
static int bpy_rna_data_context_traverse(BPy_DataContext *self, visitproc visit, void *arg)
PyMethodDef BPY_rna_data_context_method_def
static PyObject * bpy_rna_data_temp_data(PyObject *self, PyObject *args, PyObject *kw)
static void bpy_rna_data_context_dealloc(BPy_DataContext *self)
static PyMethodDef bpy_rna_data_context_methods[]
int PyC_ParseUnicodeAsBytesAndSize_OrNone(PyObject *o, void *p)
header-only compatibility defines.
#define PY_ARG_PARSER_HEAD_COMPAT()
PointerRNA RNA_pointer_create_discrete(ID *id, StructRNA *type, void *data)
PyObject_HEAD BPy_StructRNA * data_rna
PyObject_HEAD std::optional< PointerRNA > ptr