From a70d160095aa9b2b9b6f5af2ea7ee692c14037ad Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sat, 27 Jun 1998 18:21:59 +0000 Subject: [PATCH] Define new macro Py_InitModule3(name, methods, doc) which calls Py_InitModule4() with appropriate arguments. --- Include/modsupport.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Include/modsupport.h b/Include/modsupport.h index 5c00241ec71..442394cbc05 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