Kaydet (Commit) 885553e8 authored tarafından Guido van Rossum's avatar Guido van Rossum

Use PyThreadState_GET() macro.

üst 89ce4544
......@@ -365,7 +365,7 @@ eval_code2(co, globals, locals,
register PyFrameObject *f; /* Current frame */
register PyObject **fastlocals;
PyObject *retval = NULL; /* Return value */
PyThreadState *tstate = PyThreadState_Get();
PyThreadState *tstate = PyThreadState_GET();
unsigned char *first_instr;
#ifdef LLTRACE
int lltrace;
......
......@@ -55,7 +55,7 @@ PyErr_Restore(type, value, traceback)
PyObject *value;
PyObject *traceback;
{
PyThreadState *tstate = PyThreadState_Get();
PyThreadState *tstate = PyThreadState_GET();
PyObject *oldtype, *oldvalue, *oldtraceback;
if (traceback != NULL && !PyTraceBack_Check(traceback)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment