diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2005-02-26 04:57:48 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2005-02-26 04:57:48 +0000 |
commit | 7d9437c8a5fed2d03c22454f643b4bf5598f2d9e (patch) | |
tree | 27301c0c09613cb9fc801a0a19a2f98354f5249a /externals/grill/py/source/main.cpp | |
parent | 327c548eb8237c5dd1c6f9eca4fe7787e03506b1 (diff) |
- garbage collection at module scope
- better handling of bang messages
better error reporting
svn path=/trunk/; revision=2583
Diffstat (limited to 'externals/grill/py/source/main.cpp')
-rw-r--r-- | externals/grill/py/source/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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() |