mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
#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
This commit is contained in:
parent
27c8d8f9ae
commit
1172999627
2 changed files with 9 additions and 2 deletions
|
@ -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*,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue