blob: e1922a677bd38c0563cc491c4e2969fdd872f812 [file] [log] [blame]
Olivier Deprezf4ef2d02021-04-20 13:36:24 +02001#ifndef Py_CPYTHON_CEVAL_H
2# error "this header file must not be included directly"
3#endif
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8
9PyAPI_FUNC(void) PyEval_SetProfile(Py_tracefunc, PyObject *);
10PyAPI_DATA(int) _PyEval_SetProfile(PyThreadState *tstate, Py_tracefunc func, PyObject *arg);
11PyAPI_FUNC(void) PyEval_SetTrace(Py_tracefunc, PyObject *);
12PyAPI_FUNC(int) _PyEval_SetTrace(PyThreadState *tstate, Py_tracefunc func, PyObject *arg);
13PyAPI_FUNC(int) _PyEval_GetCoroutineOriginTrackingDepth(void);
14PyAPI_FUNC(int) _PyEval_SetAsyncGenFirstiter(PyObject *);
15PyAPI_FUNC(PyObject *) _PyEval_GetAsyncGenFirstiter(void);
16PyAPI_FUNC(int) _PyEval_SetAsyncGenFinalizer(PyObject *);
17PyAPI_FUNC(PyObject *) _PyEval_GetAsyncGenFinalizer(void);
18
19/* Helper to look up a builtin object */
20PyAPI_FUNC(PyObject *) _PyEval_GetBuiltinId(_Py_Identifier *);
21/* Look at the current frame's (if any) code's co_flags, and turn on
22 the corresponding compiler flags in cf->cf_flags. Return 1 if any
23 flag was set, else return 0. */
24PyAPI_FUNC(int) PyEval_MergeCompilerFlags(PyCompilerFlags *cf);
25
26PyAPI_FUNC(PyObject *) _PyEval_EvalFrameDefault(PyThreadState *tstate, PyFrameObject *f, int exc);
27
28PyAPI_FUNC(void) _PyEval_SetSwitchInterval(unsigned long microseconds);
29PyAPI_FUNC(unsigned long) _PyEval_GetSwitchInterval(void);
30
31PyAPI_FUNC(Py_ssize_t) _PyEval_RequestCodeExtraIndex(freefunc);
32
33PyAPI_FUNC(int) _PyEval_SliceIndex(PyObject *, Py_ssize_t *);
34PyAPI_FUNC(int) _PyEval_SliceIndexNotNone(PyObject *, Py_ssize_t *);
35
36#ifdef __cplusplus
37}
38#endif