summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2002-03-29 03:04:25 (GMT)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2002-03-29 03:04:25 (GMT)
commitb883310d59a2b44f502f191186ba40a3689d11ee (patch)
treeef08c5243ce0a535be1b12cf48f8ebcf30b7864f
parent95b62a6dd4b3a13a223c02a691b56c92f50c829d (diff)
downloadcpython-b883310d59a2b44f502f191186ba40a3689d11ee.zip
cpython-b883310d59a2b44f502f191186ba40a3689d11ee.tar.gz
cpython-b883310d59a2b44f502f191186ba40a3689d11ee.tar.bz2
Make _PyObject_GC_UnTrack do nothing if WITH_CYCLE_GC is not defined.
-rw-r--r--Modules/gcmodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c
index ed25bd4..d98e6a1 100644
--- a/Modules/gcmodule.c
+++ b/Modules/gcmodule.c
@@ -819,9 +819,11 @@ _PyObject_GC_Track(PyObject *op)
void
_PyObject_GC_UnTrack(PyObject *op)
{
+#ifdef WITH_CYCLE_GC
PyGC_Head *gc = AS_GC(op);
if (gc->gc.gc_next != NULL)
_PyObject_GC_UNTRACK(op);
+#endif
}
PyObject *