diff options
| author | Victor Stinner <vstinner@python.org> | 2019-11-14 12:20:46 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-14 12:20:46 +0100 |
| commit | b9e681261cd5ce6db0a79461c58d7cc52cfa4902 (patch) | |
| tree | f7ae0bd04938d34e7af64b9c7a02f2d0318aa558 /Objects/call.c | |
| parent | 3ccdd9b180f9a3f29c8ddc8ad1b331fe8df26519 (diff) | |
| download | cpython-git-b9e681261cd5ce6db0a79461c58d7cc52cfa4902.tar.gz | |
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 a8ae41a784..96174c4e33 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); |
