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