Index: ../trunk-jpl/src/wrappers/python/include/wrapper_macros.h =================================================================== --- ../trunk-jpl/src/wrappers/python/include/wrapper_macros.h (revision 15106) +++ ../trunk-jpl/src/wrappers/python/include/wrapper_macros.h (revision 15107) @@ -42,13 +42,13 @@ #if _PYTHON_MAJOR_ >=3 /* WRAPPER 3.2 {{{*/ #define WRAPPER(modulename,...) \ - +\ static PyObject* modulename(PyObject* self,PyObject* args);\ static PyMethodDef modulename##_funcs[] = {\ {#modulename, (PyCFunction)modulename, METH_VARARGS, ""},\ {NULL,NULL,0,NULL}\ };\ - +\ static struct PyModuleDef modulename##module= {\ PyModuleDef_HEAD_INIT,\ #modulename, /* name of module */\ @@ -57,31 +57,31 @@ or -1 if the module keeps state in global variables. */\ modulename##_funcs\ };\ - +\ PyMODINIT_FUNC PyInit_##modulename(void){\ - +\ import_array();\ return PyModule_Create(&modulename##module);\ }\ - +\ static PyObject* modulename(PyObject* self,PyObject* args) /*}}}*/ #else /* WRAPPER 2.7 {{{*/ #define WRAPPER(modulename,...) \ - +\ static PyObject* modulename(PyObject* self,PyObject* args);\ static PyMethodDef modulename##_funcs[] = {\ {#modulename, (PyCFunction)modulename, METH_VARARGS, ""},\ {NULL,NULL,0,NULL}\ };\ - +\ PyMODINIT_FUNC init##modulename(void){\ - +\ import_array();\ (void) Py_InitModule(#modulename, modulename##_funcs);\ }\ - +\ static PyObject* modulename(PyObject* self,PyObject* args) /*}}}*/ #endif