From 6fc09c4fd7ffddb6ac64f0becc8316c386d81cc0 Mon Sep 17 00:00:00 2001 From: Darren Ranalli Date: Wed, 26 Apr 2006 20:47:30 +0000 Subject: [PATCH] added gcDebugOn --- direct/src/showbase/PythonUtil.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/direct/src/showbase/PythonUtil.py b/direct/src/showbase/PythonUtil.py index 7aa87140f9..02a14c112b 100644 --- a/direct/src/showbase/PythonUtil.py +++ b/direct/src/showbase/PythonUtil.py @@ -1919,6 +1919,10 @@ def printListEnum(l): for i in range(len(l)): print format % (i, l[i]) +def gcDebugOn(): + import gc + return (gc.get_debug() & gc.DEBUG_LEAK) == gc.DEBUG_LEAK + import __builtin__ __builtin__.Functor = Functor __builtin__.Stack = Stack