mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Define new macro Py_InitModule3(name, methods, doc) which calls
Py_InitModule4() with appropriate arguments.
This commit is contained in:
parent
75e9fc31d3
commit
a70d160095
1 changed files with 4 additions and 0 deletions
|
@ -111,6 +111,10 @@ extern PyObject *Py_InitModule4 Py_PROTO((char *, PyMethodDef *,
|
|||
Py_InitModule4(name, methods, (char *)NULL, (PyObject *)NULL, \
|
||||
PYTHON_API_VERSION)
|
||||
|
||||
#define Py_InitModule3(name, methods, doc) \
|
||||
Py_InitModule4(name, methods, doc, (PyObject *)NULL, \
|
||||
PYTHON_API_VERSION)
|
||||
|
||||
extern char *_Py_PackageContext;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue