diff options
Diffstat (limited to 'externals/grill/py/source/py.cpp')
-rw-r--r-- | externals/grill/py/source/py.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/externals/grill/py/source/py.cpp b/externals/grill/py/source/py.cpp index bf3ff8fb..eb1d2390 100644 --- a/externals/grill/py/source/py.cpp +++ b/externals/grill/py/source/py.cpp @@ -133,7 +133,7 @@ pyobj::pyobj(int argc,const t_atom *argv): FLEXT_CALLMETHOD(threadworker); #endif - PyThreadState *state = PyLock(); + PyThreadState *state = PyLockSys(); if(argc > 2) SetArgs(argc-2,argv+2); @@ -188,7 +188,7 @@ pyobj::pyobj(int argc,const t_atom *argv): pyobj::~pyobj() { - PyThreadState *state = PyLock(); + PyThreadState *state = PyLockSys(); Unregister("_py"); PyUnlock(state); } @@ -208,7 +208,7 @@ bool pyobj::CbMethodResort(int n,const t_symbol *s,int argc,const t_atom *argv) void pyobj::m_reload() { - PyThreadState *state = PyLock(); + PyThreadState *state = PyLockSys(); Unregister("_py"); @@ -222,7 +222,7 @@ void pyobj::m_reload() void pyobj::m_reload_(int argc,const t_atom *argv) { - PyThreadState *state = PyLock(); + PyThreadState *state = PyLockSys(); SetArgs(argc,argv); PyUnlock(state); @@ -231,7 +231,7 @@ void pyobj::m_reload_(int argc,const t_atom *argv) void pyobj::m_set(int argc,const t_atom *argv) { - PyThreadState *state = PyLock(); + PyThreadState *state = PyLockSys(); int ix = 0; if(argc >= 2) { @@ -328,7 +328,7 @@ void pyobj::Reload() bool pyobj::callpy(PyObject *fun,PyObject *args) { - PyObject *ret = PyObject_Call(fun,args,NULL); + PyObject *ret = PyObject_CallObject(fun,args); if(ret == NULL) { // function not found resp. arguments not matching PyErr_Print(); |