mirror of
https://github.com/python/cpython.git
synced 2025-10-21 22:22:48 +00:00
Use PyThreadState_GET() macro.
This commit is contained in:
parent
89ce454498
commit
885553e8d3
2 changed files with 2 additions and 2 deletions
|
@ -365,7 +365,7 @@ eval_code2(co, globals, locals,
|
||||||
register PyFrameObject *f; /* Current frame */
|
register PyFrameObject *f; /* Current frame */
|
||||||
register PyObject **fastlocals;
|
register PyObject **fastlocals;
|
||||||
PyObject *retval = NULL; /* Return value */
|
PyObject *retval = NULL; /* Return value */
|
||||||
PyThreadState *tstate = PyThreadState_Get();
|
PyThreadState *tstate = PyThreadState_GET();
|
||||||
unsigned char *first_instr;
|
unsigned char *first_instr;
|
||||||
#ifdef LLTRACE
|
#ifdef LLTRACE
|
||||||
int lltrace;
|
int lltrace;
|
||||||
|
|
|
@ -55,7 +55,7 @@ PyErr_Restore(type, value, traceback)
|
||||||
PyObject *value;
|
PyObject *value;
|
||||||
PyObject *traceback;
|
PyObject *traceback;
|
||||||
{
|
{
|
||||||
PyThreadState *tstate = PyThreadState_Get();
|
PyThreadState *tstate = PyThreadState_GET();
|
||||||
PyObject *oldtype, *oldvalue, *oldtraceback;
|
PyObject *oldtype, *oldvalue, *oldtraceback;
|
||||||
|
|
||||||
if (traceback != NULL && !PyTraceBack_Check(traceback)) {
|
if (traceback != NULL && !PyTraceBack_Check(traceback)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue