_Py_RefTotal should only be declared here when Py_TRACE_REFS are #define'd
This commit is contained in:
parent
2c4a3dceaf
commit
4ca150bdb2
|
@ -523,7 +523,9 @@ instance_dealloc(inst)
|
||||||
PyObject *error_type, *error_value, *error_traceback;
|
PyObject *error_type, *error_value, *error_traceback;
|
||||||
PyObject *del;
|
PyObject *del;
|
||||||
static PyObject *delstr;
|
static PyObject *delstr;
|
||||||
|
#ifdef Py_TRACE_REFS
|
||||||
extern long _Py_RefTotal;
|
extern long _Py_RefTotal;
|
||||||
|
#endif
|
||||||
PyObject_GC_Fini(inst);
|
PyObject_GC_Fini(inst);
|
||||||
/* Call the __del__ method if it exists. First temporarily
|
/* Call the __del__ method if it exists. First temporarily
|
||||||
revive the object and save the current exception, if any. */
|
revive the object and save the current exception, if any. */
|
||||||
|
|
Loading…
Reference in New Issue