Py::Object ParameterGrpPy::exportTo(const Py::Tuple& args) { char *pstr; if (!PyArg_ParseTuple(args.ptr(), "s", &pstr)) throw Py::Exception(); _cParamGrp->exportTo(pstr); return Py::None(); }
PyObject *ParameterGrpPy::exportTo(PyObject *args) { char *pstr; if (!PyArg_ParseTuple(args, "s", &pstr)) // convert args: Python->C return NULL; // NULL triggers exception PY_TRY { _cParamGrp->exportTo(pstr); }PY_CATCH; Py_Return; }