summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-06-27 18:21:59 (GMT)
committerGuido van Rossum <guido@python.org>1998-06-27 18:21:59 (GMT)
commita70d160095aa9b2b9b6f5af2ea7ee692c14037ad (patch)
treec8ef3f3cb26df7276b5ccf77951dd1bdf18ac45a /Include
parent75e9fc31d3a180689d6e9a9a390f75ee3dd969a4 (diff)
downloadcpython-a70d160095aa9b2b9b6f5af2ea7ee692c14037ad.zip
cpython-a70d160095aa9b2b9b6f5af2ea7ee692c14037ad.tar.gz
cpython-a70d160095aa9b2b9b6f5af2ea7ee692c14037ad.tar.bz2
Define new macro Py_InitModule3(name, methods, doc) which calls
Py_InitModule4() with appropriate arguments.
Diffstat (limited to 'Include')
-rw-r--r--Include/modsupport.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/modsupport.h b/Include/modsupport.h
index 5c00241..442394c 100644
--- a/Include/modsupport.h
+++ b/Include/modsupport.h
@@ -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