Made the Freestyle Python API compatible with Python 3.
[blender.git] / source / blender / freestyle / intern / python / UnaryFunction1D / BPy_UnaryFunction1DVoid.h
1 #ifndef FREESTYLE_PYTHON_UNARYFUNCTION1DVOID_H
2 #define FREESTYLE_PYTHON_UNARYFUNCTION1DVOID_H
3
4 #include "../BPy_UnaryFunction1D.h"
5
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9
10 ///////////////////////////////////////////////////////////////////////////////////////////
11
12 #include <Python.h>
13
14 extern PyTypeObject UnaryFunction1DVoid_Type;
15
16 #define BPy_UnaryFunction1DVoid_Check(v)        (  PyObject_IsInstance( (PyObject *) v, (PyObject *) &UnaryFunction1DVoid_Type)  )
17
18 /*---------------------------Python BPy_UnaryFunction1DVoid structure definition----------*/
19 typedef struct {
20         BPy_UnaryFunction1D py_uf1D;
21         UnaryFunction1D_void *uf1D_void;
22 } BPy_UnaryFunction1DVoid;
23
24 /*---------------------------Python BPy_UnaryFunction1DVoid visible prototypes-----------*/
25 int UnaryFunction1DVoid_Init( PyObject *module );
26
27
28 ///////////////////////////////////////////////////////////////////////////////////////////
29
30 #ifdef __cplusplus
31 }
32 #endif
33
34 #endif /* FREESTYLE_PYTHON_UNARYFUNCTION1DVOID_H */