#if defined(WITH_THREAD) && !defined(MYDB_USE_GILSTATE)
/* Save the current interpreter, so callbacks can do the right thing. */
- _db_interpreterState = PyThreadState_Get()->interp;
+ _db_interpreterState = PyThreadState_GET()->interp;
#endif
/* Create the module and add the functions */
Py_INCREF(function);
*hook_var = function;
Py_XDECREF(tmp);
- *tstate = PyThreadState_Get();
+ *tstate = PyThreadState_GET();
}
else {
PyOS_snprintf(buf, sizeof(buf),
}
#if !(defined(PYOS_OS2) && defined(PYCC_GCC))
- dlopenflags = PyThreadState_Get()->interp->dlopenflags;
+ dlopenflags = PyThreadState_GET()->interp->dlopenflags;
#endif
if (Py_VerboseFlag)