source: issm/oecreview/Archive/14312-15392/ISSM-15106-15107.diff

Last change on this file was 15393, checked in by Mathieu Morlighem, 12 years ago

NEW: adding Archive/14312-15392 for oecreview

File size: 1.5 KB
  • ../trunk-jpl/src/wrappers/python/include/wrapper_macros.h

     
    4242#if _PYTHON_MAJOR_ >=3
    4343/* WRAPPER 3.2 {{{*/
    4444#define WRAPPER(modulename,...)  \
    45 
     45\
    4646static PyObject* modulename(PyObject* self,PyObject* args);\
    4747static PyMethodDef modulename##_funcs[] = {\
    4848        {#modulename, (PyCFunction)modulename, METH_VARARGS, ""},\
    4949        {NULL,NULL,0,NULL}\
    5050};\
    51 
     51\
    5252static struct PyModuleDef modulename##module= {\
    5353        PyModuleDef_HEAD_INIT,\
    5454        #modulename,   /* name of module */\
     
    5757                                 or -1 if the module keeps state in global variables. */\
    5858        modulename##_funcs\
    5959};\
    60 
     60\
    6161PyMODINIT_FUNC PyInit_##modulename(void){\
    62 
     62\
    6363        import_array();\
    6464        return PyModule_Create(&modulename##module);\
    6565}\
    66 
     66\
    6767static PyObject* modulename(PyObject* self,PyObject* args)
    6868/*}}}*/
    6969#else
    7070/* WRAPPER 2.7 {{{*/
    7171#define WRAPPER(modulename,...)  \
    72 
     72\
    7373static PyObject* modulename(PyObject* self,PyObject* args);\
    7474static PyMethodDef modulename##_funcs[] = {\
    7575        {#modulename, (PyCFunction)modulename, METH_VARARGS, ""},\
    7676        {NULL,NULL,0,NULL}\
    7777};\
    78 
     78\
    7979PyMODINIT_FUNC init##modulename(void){\
    80 
     80\
    8181        import_array();\
    8282        (void) Py_InitModule(#modulename, modulename##_funcs);\
    8383}\
    84 
     84\
    8585static PyObject* modulename(PyObject* self,PyObject* args)
    8686/*}}}*/
    8787#endif
Note: See TracBrowser for help on using the repository browser.