From: Andrew Svetlov Date: Wed, 26 Dec 2012 20:52:04 +0000 (+0200) Subject: Revert back PyCFunction_New macro. Keep PyCFunction_NewEx usage in python core module... X-Git-Tag: v3.4.0a1~1764 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=192b10b371e3e72b121d8ffda60b43580b49d506;p=python Revert back PyCFunction_New macro. Keep PyCFunction_NewEx usage in python core modules (#15422) --- diff --git a/Include/methodobject.h b/Include/methodobject.h index 28781d8d1c..3cc2ea9308 100644 --- a/Include/methodobject.h +++ b/Include/methodobject.h @@ -46,7 +46,7 @@ struct PyMethodDef { }; typedef struct PyMethodDef PyMethodDef; -PyAPI_FUNC(PyObject *) PyCFunction_New(PyMethodDef *, PyObject *); +#define PyCFunction_New(ML, SELF) PyCFunction_NewEx((ML), (SELF), NULL) PyAPI_FUNC(PyObject *) PyCFunction_NewEx(PyMethodDef *, PyObject *, PyObject *);