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