summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-26 20:52:04 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-26 20:52:04 (GMT)
commit192b10b371e3e72b121d8ffda60b43580b49d506 (patch)
treec992cac8a869ca2ce73cd86f191f5d2013fbeb38 /Include
parentcdf680f54cfcc5ed47e126f2adfd6f241608e54f (diff)
downloadcpython-192b10b371e3e72b121d8ffda60b43580b49d506.zip
cpython-192b10b371e3e72b121d8ffda60b43580b49d506.tar.gz
cpython-192b10b371e3e72b121d8ffda60b43580b49d506.tar.bz2
Revert back PyCFunction_New macro. Keep PyCFunction_NewEx usage in python core modules (#15422)
Diffstat (limited to 'Include')
-rw-r--r--Include/methodobject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/methodobject.h b/Include/methodobject.h
index 28781d8..3cc2ea9 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 *);