static PyObject * PyCMOR_set_table(PyObject *self,PyObject *args) { int table,ierr; if (!PyArg_ParseTuple(args,"i",&table)) return NULL; ierr = cmor_set_table(table); if (ierr != 0 ) return NULL; /* Return NULL Python Object */ Py_INCREF(Py_None); return Py_None; }
static PyObject *PyCMOR_set_table(PyObject * self, PyObject * args) { signal(signal_to_catch, signal_handler); int table, ierr; if (!PyArg_ParseTuple(args, "i", &table)) return NULL; ierr = cmor_set_table(table); if (ierr != 0 || raise_exception) { raise_exception = 0; PyErr_Format(CMORError, exception_message, "set_table"); return NULL; } return (Py_BuildValue("i", ierr)); }