Define new macro Py_InitModule3(name, methods, doc) which calls

Py_InitModule4() with appropriate arguments.
This commit is contained in:
Guido van Rossum 1998-06-27 18:21:59 +00:00
parent 75e9fc31d3
commit a70d160095
1 changed files with 4 additions and 0 deletions

View File

@ -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