blob: 2c1c2d0549a9a40fcf054adf9b7138fa851f78ce [file] [log] [blame]
Guido van Rossumff4949e1992-08-05 19:58:53 +00001
2/* Interface to execute compiled code */
3
Fred Drake5eb6d4e2000-07-08 23:37:28 +00004#ifndef Py_EVAL_H
5#define Py_EVAL_H
6#ifdef __cplusplus
7extern "C" {
8#endif
9
Martin v. Löwis4d0d4712010-12-03 20:14:31 +000010PyAPI_FUNC(PyObject *) PyEval_EvalCode(PyObject *, PyObject *, PyObject *);
Guido van Rossuma3309961993-07-28 09:05:47 +000011
Martin v. Löwis4d0d4712010-12-03 20:14:31 +000012PyAPI_FUNC(PyObject *) PyEval_EvalCodeEx(PyObject *co,
Victor Stinnerc22bfaa2017-02-12 19:27:05 +010013 PyObject *globals,
14 PyObject *locals,
Serhiy Storchakaa5552f02017-12-15 13:11:11 +020015 PyObject *const *args, int argc,
16 PyObject *const *kwds, int kwdc,
17 PyObject *const *defs, int defc,
Victor Stinnerc22bfaa2017-02-12 19:27:05 +010018 PyObject *kwdefs, PyObject *closure);
Tim Peters6d6c1a32001-08-02 04:15:00 +000019
Martin v. Löwis4d0d4712010-12-03 20:14:31 +000020#ifndef Py_LIMITED_API
Victor Stinnerc22bfaa2017-02-12 19:27:05 +010021PyAPI_FUNC(PyObject *) _PyEval_EvalCodeWithName(
22 PyObject *co,
23 PyObject *globals, PyObject *locals,
Serhiy Storchakaa5552f02017-12-15 13:11:11 +020024 PyObject *const *args, Py_ssize_t argcount,
25 PyObject *const *kwnames, PyObject *const *kwargs,
Victor Stinnerc22bfaa2017-02-12 19:27:05 +010026 Py_ssize_t kwcount, int kwstep,
Serhiy Storchakaa5552f02017-12-15 13:11:11 +020027 PyObject *const *defs, Py_ssize_t defcount,
Victor Stinnerc22bfaa2017-02-12 19:27:05 +010028 PyObject *kwdefs, PyObject *closure,
29 PyObject *name, PyObject *qualname);
30
Guido van Rossuma12fe4e2003-04-09 19:06:21 +000031PyAPI_FUNC(PyObject *) _PyEval_CallTracing(PyObject *func, PyObject *args);
Martin v. Löwis4d0d4712010-12-03 20:14:31 +000032#endif
Guido van Rossuma12fe4e2003-04-09 19:06:21 +000033
Guido van Rossuma3309961993-07-28 09:05:47 +000034#ifdef __cplusplus
35}
36#endif
37#endif /* !Py_EVAL_H */