Changeset View
Changeset View
Standalone View
Standalone View
source/blender/freestyle/intern/python/BPy_Iterator.h
| Show All 20 Lines | |||||
| #pragma once | #pragma once | ||||
| extern "C" { | extern "C" { | ||||
| #include <Python.h> | #include <Python.h> | ||||
| } | } | ||||
| #include "../system/Iterator.h" | #include "../system/Iterator.h" | ||||
| using namespace Freestyle; | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| extern "C" { | extern "C" { | ||||
| #endif | #endif | ||||
| /////////////////////////////////////////////////////////////////////////////////////////// | /////////////////////////////////////////////////////////////////////////////////////////// | ||||
| extern PyTypeObject Iterator_Type; | extern PyTypeObject Iterator_Type; | ||||
| #define BPy_Iterator_Check(v) (PyObject_IsInstance((PyObject *)v, (PyObject *)&Iterator_Type)) | #define BPy_Iterator_Check(v) (PyObject_IsInstance((PyObject *)v, (PyObject *)&Iterator_Type)) | ||||
| /*---------------------------Python BPy_Iterator structure definition----------*/ | /*---------------------------Python BPy_Iterator structure definition----------*/ | ||||
| typedef struct { | typedef struct { | ||||
| PyObject_HEAD Iterator *it; | PyObject_HEAD Freestyle::Iterator *it; | ||||
| } BPy_Iterator; | } BPy_Iterator; | ||||
| /*---------------------------Python BPy_Iterator visible prototypes-----------*/ | /*---------------------------Python BPy_Iterator visible prototypes-----------*/ | ||||
| int Iterator_Init(PyObject *module); | int Iterator_Init(PyObject *module); | ||||
| /////////////////////////////////////////////////////////////////////////////////////////// | /////////////////////////////////////////////////////////////////////////////////////////// | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||