diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-25 11:32:35 (GMT) |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-25 11:32:35 (GMT) |
commit | 3ba3a3ee56c142e93d6bbe20ff6bf939212a30f0 (patch) | |
tree | 28facf56626869888a4ca3ff03b91c9006017bc3 /Include | |
parent | 914ab8420e069499ad8a2d9b3f1ad584bd26a813 (diff) | |
download | cpython-3ba3a3ee56c142e93d6bbe20ff6bf939212a30f0.zip cpython-3ba3a3ee56c142e93d6bbe20ff6bf939212a30f0.tar.gz cpython-3ba3a3ee56c142e93d6bbe20ff6bf939212a30f0.tar.bz2 |
Issue #15422: get rid of PyCFunction_New macro
Diffstat (limited to 'Include')
-rw-r--r-- | Include/methodobject.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/methodobject.h b/Include/methodobject.h index 3cc2ea9..28781d8 100644 --- a/Include/methodobject.h +++ b/Include/methodobject.h @@ -46,7 +46,7 @@ struct PyMethodDef { }; typedef struct PyMethodDef PyMethodDef; -#define PyCFunction_New(ML, SELF) PyCFunction_NewEx((ML), (SELF), NULL) +PyAPI_FUNC(PyObject *) PyCFunction_New(PyMethodDef *, PyObject *); PyAPI_FUNC(PyObject *) PyCFunction_NewEx(PyMethodDef *, PyObject *, PyObject *); |