Made the Freestyle Python API compatible with Python 3.
[blender.git] / source / blender / freestyle / intern / python / BPy_Interface1D.h
1 #ifndef FREESTYLE_PYTHON_INTERFACE1D_H
2 #define FREESTYLE_PYTHON_INTERFACE1D_H
3
4 #include "../view_map/Interface1D.h"
5
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9
10 ///////////////////////////////////////////////////////////////////////////////////////////
11
12 #include <Python.h>
13
14 extern PyTypeObject Interface1D_Type;
15
16 #define BPy_Interface1D_Check(v)        (  PyObject_IsInstance( (PyObject *) v, (PyObject *) &Interface1D_Type)  )
17
18 /*---------------------------Python BPy_Interface1D structure definition----------*/
19 typedef struct {
20         PyObject_HEAD
21         Interface1D *if1D;
22         int borrowed; /* non-zero if *if1D is a borrowed object */
23 } BPy_Interface1D;
24
25 /*---------------------------Python BPy_Interface1D visible prototypes-----------*/
26
27 int Interface1D_Init( PyObject *module );
28
29
30 ///////////////////////////////////////////////////////////////////////////////////////////
31
32 #ifdef __cplusplus
33 }
34 #endif
35
36 #endif /* FREESTYLE_PYTHON_INTERFACE1D_H */