Another place that was using python threading APIs

This commit is contained in:
Kovid Goyal 2017-09-08 21:36:20 +05:30
parent 1f9510ab9e
commit aa526db772
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -20,11 +20,9 @@
#define CALLBACK(name, fmt, ...) \
if ((name) != NULL) { \
PyGILState_STATE _pystate = PyGILState_Ensure(); \
PyObject *_pyret = PyObject_CallFunction((name), fmt, __VA_ARGS__); \
if (_pyret == NULL && PyErr_Occurred() != NULL) PyErr_Print(); \
Py_CLEAR(_pyret); \
PyGILState_Release(_pystate); \
}
#define WINDOW_CALLBACK(name, fmt, ...) \