mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
_Py_RefTotal should only be declared here when Py_TRACE_REFS are #define'd
This commit is contained in:
parent
2c4a3dceaf
commit
4ca150bdb2
1 changed files with 2 additions and 0 deletions
|
|
@ -523,7 +523,9 @@ instance_dealloc(inst)
|
|||
PyObject *error_type, *error_value, *error_traceback;
|
||||
PyObject *del;
|
||||
static PyObject *delstr;
|
||||
#ifdef Py_TRACE_REFS
|
||||
extern long _Py_RefTotal;
|
||||
#endif
|
||||
PyObject_GC_Fini(inst);
|
||||
/* Call the __del__ method if it exists. First temporarily
|
||||
revive the object and save the current exception, if any. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue