diff options
author | Victor Stinner <vstinner@python.org> | 2019-11-14 11:20:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-14 11:20:46 (GMT) |
commit | b9e681261cd5ce6db0a79461c58d7cc52cfa4902 (patch) | |
tree | f7ae0bd04938d34e7af64b9c7a02f2d0318aa558 /Objects/call.c | |
parent | 3ccdd9b180f9a3f29c8ddc8ad1b331fe8df26519 (diff) | |
download | cpython-b9e681261cd5ce6db0a79461c58d7cc52cfa4902.zip cpython-b9e681261cd5ce6db0a79461c58d7cc52cfa4902.tar.gz cpython-b9e681261cd5ce6db0a79461c58d7cc52cfa4902.tar.bz2 |
bpo-38644: Add _PyEval_EvalFrame() with tstate (GH-17131)
Add _PyEval_EvalFrame() static inline function to get eval_frame from
tstate->interp.
Diffstat (limited to 'Objects/call.c')
-rw-r--r-- | Objects/call.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/call.c b/Objects/call.c index a8ae41a..96174c4 100644 --- a/Objects/call.c +++ b/Objects/call.c @@ -1,4 +1,5 @@ #include "Python.h" +#include "pycore_ceval.h" /* _PyEval_EvalFrame() */ #include "pycore_object.h" #include "pycore_pyerrors.h" #include "pycore_pystate.h" @@ -303,7 +304,7 @@ function_code_fastcall(PyCodeObject *co, PyObject *const *args, Py_ssize_t nargs Py_INCREF(*args); fastlocals[i] = *args++; } - PyObject *result = PyEval_EvalFrameEx(f, 0); + PyObject *result = _PyEval_EvalFrame(tstate, f, 0); if (Py_REFCNT(f) > 1) { Py_DECREF(f); |