Commit 8f9b1471 authored by Stefan Behnel's avatar Stefan Behnel

support CyFunction also in __Pyx_PyObject_CallNoArg()

parent 677efaa6
...@@ -1222,7 +1222,11 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func); /*proto ...@@ -1222,7 +1222,11 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func); /*proto
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) { static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) {
PyObject *self, *result; PyObject *self, *result;
PyCFunction cfunc; PyCFunction cfunc;
if (!PyCFunction_Check(func) || !(PyCFunction_GET_FLAGS(func) & METH_NOARGS)) { if (!(PyCFunction_Check(func)
#ifdef __Pyx_CyFunction_USED
|| PyObject_TypeCheck(func, __pyx_CyFunctionType)
#endif
) || !(PyCFunction_GET_FLAGS(func) & METH_NOARGS)) {
return __Pyx_PyObject_Call(func, $empty_tuple, NULL); return __Pyx_PyObject_Call(func, $empty_tuple, NULL);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment