diff options
author | Victor Stinner <vstinner@python.org> | 2019-11-16 00:03:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-16 00:03:22 (GMT) |
commit | b5e170f127b57d5b0a4fb58f316acd6191509dce (patch) | |
tree | cb63be7c4be29eb144c748ec1dfa1fb7e05c4974 /Include | |
parent | 0fe0b88d6eb597c9a929e14ad47a5a9bd99bfe53 (diff) | |
download | cpython-b5e170f127b57d5b0a4fb58f316acd6191509dce.zip cpython-b5e170f127b57d5b0a4fb58f316acd6191509dce.tar.gz cpython-b5e170f127b57d5b0a4fb58f316acd6191509dce.tar.bz2 |
bpo-38644: Add _PyEval_EvalCode() (GH-17183)
_PyFunction_Vectorcall() now pass tstate to function calls.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_ceval.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Include/internal/pycore_ceval.h b/Include/internal/pycore_ceval.h index 7adb872..857fc0b 100644 --- a/Include/internal/pycore_ceval.h +++ b/Include/internal/pycore_ceval.h @@ -43,6 +43,16 @@ _PyEval_EvalFrame(PyThreadState *tstate, struct _frame *f, int throwflag) return tstate->interp->eval_frame(f, throwflag); } +extern PyObject *_PyEval_EvalCode( + PyThreadState *tstate, + PyObject *_co, PyObject *globals, PyObject *locals, + PyObject *const *args, Py_ssize_t argcount, + PyObject *const *kwnames, PyObject *const *kwargs, + Py_ssize_t kwcount, int kwstep, + PyObject *const *defs, Py_ssize_t defcount, + PyObject *kwdefs, PyObject *closure, + PyObject *name, PyObject *qualname); + #ifdef __cplusplus } #endif |