mirror of
https://github.com/python/cpython.git
synced 2024-12-16 05:14:41 +08:00
0332e569c1
* Further refactoring of PyEval_EvalCode and friends. Break into make-frame, and eval-frame parts. * Simplify function vector call using new _PyEval_Vector. * Remove unused internal functions: _PyEval_EvalCodeWithName and _PyEval_EvalCode. * Don't use legacy function PyEval_EvalCodeEx.
28 lines
831 B
C
28 lines
831 B
C
|
|
/* Interface to execute compiled code */
|
|
|
|
#ifndef Py_EVAL_H
|
|
#define Py_EVAL_H
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
PyAPI_FUNC(PyObject *) PyEval_EvalCode(PyObject *, PyObject *, PyObject *);
|
|
|
|
PyAPI_FUNC(PyObject *) PyEval_EvalCodeEx(PyObject *co,
|
|
PyObject *globals,
|
|
PyObject *locals,
|
|
PyObject *const *args, int argc,
|
|
PyObject *const *kwds, int kwdc,
|
|
PyObject *const *defs, int defc,
|
|
PyObject *kwdefs, PyObject *closure);
|
|
|
|
#ifndef Py_LIMITED_API
|
|
PyAPI_FUNC(PyObject *) _PyEval_CallTracing(PyObject *func, PyObject *args);
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif /* !Py_EVAL_H */
|