summaryrefslogtreecommitdiffstats
path: root/Include/modsupport.h
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2009-06-01 21:16:17 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2009-06-01 21:16:17 (GMT)
commit1172999627c912b57ace149183de4a313edc74d2 (patch)
tree22855b08741c642c6f0ac82ad238ad9ef335adb1 /Include/modsupport.h
parent27c8d8f9aedc7c27fb61407df2769eb1bd65f457 (diff)
downloadcpython-1172999627c912b57ace149183de4a313edc74d2.zip
cpython-1172999627c912b57ace149183de4a313edc74d2.tar.gz
cpython-1172999627c912b57ace149183de4a313edc74d2.tar.bz2
#5735: Modules compiled with incompatible settings (--with-pydebug when python is not)
should generate a link-time error. I won't backport to 3.0, because it breaks binary compatibility
Diffstat (limited to 'Include/modsupport.h')
-rw-r--r--Include/modsupport.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/modsupport.h b/Include/modsupport.h
index 5ed3403..23e8fa6 100644
--- a/Include/modsupport.h
+++ b/Include/modsupport.h
@@ -92,10 +92,10 @@ PyAPI_FUNC(int) PyModule_AddStringConstant(PyObject *, const char *, const char
*/
#ifdef Py_TRACE_REFS
- /* When we are tracing reference counts, rename PyModule_New2 so
+ /* When we are tracing reference counts, rename PyModule_Create2 so
modules compiled with incompatible settings will generate a
link-time error. */
- #define PyModule_New2 PyModule_Create2TraceRefs
+ #define PyModule_Create2 PyModule_Create2TraceRefs
#endif
PyAPI_FUNC(PyObject *) PyModule_Create2(struct PyModuleDef*,