summaryrefslogtreecommitdiffstats
path: root/Include/object.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/object.h')
-rw-r--r--Include/object.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Include/object.h b/Include/object.h
index 0b85fd3..d1e60be 100644
--- a/Include/object.h
+++ b/Include/object.h
@@ -295,11 +295,12 @@ environment the global variable trick is not safe.)
#ifndef Py_TRACE_REFS
#ifdef COUNT_ALLOCS
#define _Py_Dealloc(op) ((op)->ob_type->tp_free++, (*(op)->ob_type->tp_dealloc)((PyObject *)(op)))
+#define _Py_ForgetReference(op) ((op)->ob_type->tp_free++)
#else
#define _Py_Dealloc(op) (*(op)->ob_type->tp_dealloc)((PyObject *)(op))
-#endif
#define _Py_ForgetReference(op) /*empty*/
#endif
+#endif
#ifdef COUNT_ALLOCS
extern void inc_count Py_PROTO((PyTypeObject *));