Made the Freestyle Python API compatible with Python 3.
[blender.git] / source / blender / freestyle / intern / python / UnaryFunction1D / BPy_UnaryFunction1DUnsigned.h
1 #ifndef FREESTYLE_PYTHON_UNARYFUNCTION1DUNSIGNED_H
2 #define FREESTYLE_PYTHON_UNARYFUNCTION1DUNSIGNED_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 UnaryFunction1DUnsigned_Type;
15
16 #define BPy_UnaryFunction1DUnsigned_Check(v)    (  PyObject_IsInstance( (PyObject *) v, (PyObject *) &UnaryFunction1DUnsigned_Type)  )
17
18 /*---------------------------Python BPy_UnaryFunction1DUnsigned structure definition----------*/
19 typedef struct {
20         BPy_UnaryFunction1D py_uf1D;
21         UnaryFunction1D<unsigned int> *uf1D_unsigned;
22 } BPy_UnaryFunction1DUnsigned;
23
24 /*---------------------------Python BPy_UnaryFunction1DUnsigned visible prototypes-----------*/
25 int UnaryFunction1DUnsigned_Init( PyObject *module );
26
27
28 ///////////////////////////////////////////////////////////////////////////////////////////
29
30 #ifdef __cplusplus
31 }
32 #endif
33
34 #endif /* FREESTYLE_PYTHON_UNARYFUNCTION1DUNSIGNED_H */