Blender  V3.3
BPy_Iterator.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
7 #pragma once
8 
9 extern "C" {
10 #include <Python.h>
11 }
12 
13 #include "../system/Iterator.h"
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
20 
21 extern PyTypeObject Iterator_Type;
22 
23 #define BPy_Iterator_Check(v) (PyObject_IsInstance((PyObject *)v, (PyObject *)&Iterator_Type))
24 
25 /*---------------------------Python BPy_Iterator structure definition----------*/
26 typedef struct {
27  PyObject_HEAD
29 } BPy_Iterator;
30 
31 /*---------------------------Python BPy_Iterator visible prototypes-----------*/
32 
33 int Iterator_Init(PyObject *module);
34 
36 
37 #ifdef __cplusplus
38 }
39 #endif
PyTypeObject Iterator_Type
int Iterator_Init(PyObject *module)
static struct PyModuleDef module
Definition: python.cpp:972
PyObject_HEAD Freestyle::Iterator * it
Definition: BPy_Iterator.h:28