diff options
author | Skip Montanaro <skip@pobox.com> | 2000-07-08 12:04:57 (GMT) |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2000-07-08 12:04:57 (GMT) |
commit | 4ca150bdb219a0039277808e760ed8e4fcdc592f (patch) | |
tree | 496ab7adcac97f967f1cc09d48f8f1b6d735e7f9 | |
parent | 2c4a3dceafeadd5821e36a6e1b7fc6b7d81338f0 (diff) | |
download | cpython-4ca150bdb219a0039277808e760ed8e4fcdc592f.zip cpython-4ca150bdb219a0039277808e760ed8e4fcdc592f.tar.gz cpython-4ca150bdb219a0039277808e760ed8e4fcdc592f.tar.bz2 |
_Py_RefTotal should only be declared here when Py_TRACE_REFS are #define'd
-rw-r--r-- | Objects/classobject.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/classobject.c b/Objects/classobject.c index 4f73ff8..0e1308b 100644 --- a/Objects/classobject.c +++ b/Objects/classobject.c @@ -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. */ |