From 7d9437c8a5fed2d03c22454f643b4bf5598f2d9e Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Sat, 26 Feb 2005 04:57:48 +0000 Subject: - garbage collection at module scope - better handling of bang messages better error reporting svn path=/trunk/; revision=2583 --- externals/grill/py/source/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'externals/grill/py/source/main.cpp') diff --git a/externals/grill/py/source/main.cpp b/externals/grill/py/source/main.cpp index bf7345d5..3b75f419 100644 --- a/externals/grill/py/source/main.cpp +++ b/externals/grill/py/source/main.cpp @@ -556,7 +556,7 @@ short py::patcher_myvol(t_patcher *x) } #endif -void py::collect() +bool py::collect() { if(gcollect) { PyObject *args = PyTuple_New(0); @@ -568,8 +568,10 @@ void py::collect() if(refs) post("py/pyext - Garbage collector reports %i unreachable objects",refs); #endif Py_DECREF(ret); + return false; } } + return true; } Fifo::~Fifo() -- cgit v1.2.1