diff options
Diffstat (limited to 'Python')
| -rw-r--r-- | Python/pythonrun.c | 2 | ||||
| -rw-r--r-- | Python/sysmodule.c | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 1aa6930435..818c760901 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -34,7 +34,7 @@ #else /* Py_REF_DEBUG */ #define PRINT_TOTAL_REFS() fprintf(stderr, \ "[%" PY_FORMAT_SIZE_T "d refs]\n", \ - _Py_RefTotal) + _Py_GetRefTotal()) #endif extern char *Py_GetPath(void); diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 4a527424c4..cbf0d8f5e3 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -604,10 +604,9 @@ sys_getrefcount(PyObject *self, PyObject *arg) static PyObject * sys_gettotalrefcount(PyObject *self) { - return PyInt_FromSsize_t(_Py_RefTotal); + return PyInt_FromSsize_t(_Py_GetRefTotal()); } - -#endif /* Py_TRACE_REFS */ +#endif /* Py_REF_DEBUG */ PyDoc_STRVAR(getrefcount_doc, "getrefcount(object) -> integer\n\ |
