Commit b883310d authored by Neil Schemenauer's avatar Neil Schemenauer

Make _PyObject_GC_UnTrack do nothing if WITH_CYCLE_GC is not defined.

parent 95b62a6d
......@@ -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 *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment