Lines Matching refs:tstate
27 PyThreadState *tstate = PyThreadState_GET(); in PyErr_Restore() local
39 oldtype = tstate->curexc_type; in PyErr_Restore()
40 oldvalue = tstate->curexc_value; in PyErr_Restore()
41 oldtraceback = tstate->curexc_traceback; in PyErr_Restore()
43 tstate->curexc_type = type; in PyErr_Restore()
44 tstate->curexc_value = value; in PyErr_Restore()
45 tstate->curexc_traceback = traceback; in PyErr_Restore()
78 PyThreadState *tstate = PyThreadState_GET(); in PyErr_Occurred() local
80 return tstate->curexc_type; in PyErr_Occurred()
151 PyThreadState *tstate = NULL; in PyErr_NormalizeException() local
227 tstate = PyThreadState_GET(); in PyErr_NormalizeException()
228 if (++tstate->recursion_depth > Py_GetRecursionLimit()) { in PyErr_NormalizeException()
229 --tstate->recursion_depth; in PyErr_NormalizeException()
239 --tstate->recursion_depth; in PyErr_NormalizeException()
246 PyThreadState *tstate = PyThreadState_GET(); in PyErr_Fetch() local
248 *p_type = tstate->curexc_type; in PyErr_Fetch()
249 *p_value = tstate->curexc_value; in PyErr_Fetch()
250 *p_traceback = tstate->curexc_traceback; in PyErr_Fetch()
252 tstate->curexc_type = NULL; in PyErr_Fetch()
253 tstate->curexc_value = NULL; in PyErr_Fetch()
254 tstate->curexc_traceback = NULL; in PyErr_Fetch()