| 1 | #ifndef Py_CPYTHON_CEVAL_H |
| 2 | # error "this header file must not be included directly" |
| 3 | #endif |
| 4 | |
| 5 | PyAPI_FUNC(void) PyEval_SetProfile(Py_tracefunc, PyObject *); |
| 6 | PyAPI_FUNC(void) PyEval_SetProfileAllThreads(Py_tracefunc, PyObject *); |
| 7 | PyAPI_DATA(int) _PyEval_SetProfile(PyThreadState *tstate, Py_tracefunc func, PyObject *arg); |
| 8 | PyAPI_FUNC(void) PyEval_SetTrace(Py_tracefunc, PyObject *); |
| 9 | PyAPI_FUNC(void) PyEval_SetTraceAllThreads(Py_tracefunc, PyObject *); |
| 10 | PyAPI_FUNC(int) _PyEval_SetTrace(PyThreadState *tstate, Py_tracefunc func, PyObject *arg); |
| 11 | |
| 12 | /* Helper to look up a builtin object */ |
| 13 | PyAPI_FUNC(PyObject *) _PyEval_GetBuiltin(PyObject *); |
| 14 | PyAPI_FUNC(PyObject *) _PyEval_GetBuiltinId(_Py_Identifier *); |
| 15 | /* Look at the current frame's (if any) code's co_flags, and turn on |
| 16 | the corresponding compiler flags in cf->cf_flags. Return 1 if any |
| 17 | flag was set, else return 0. */ |
| 18 | PyAPI_FUNC(int) PyEval_MergeCompilerFlags(PyCompilerFlags *cf); |
| 19 | |
| 20 | PyAPI_FUNC(PyObject *) _PyEval_EvalFrameDefault(PyThreadState *tstate, struct _PyInterpreterFrame *f, int exc); |
| 21 | |
| 22 | PyAPI_FUNC(void) _PyEval_SetSwitchInterval(unsigned long microseconds); |
| 23 | PyAPI_FUNC(unsigned long) _PyEval_GetSwitchInterval(void); |
| 24 | |
| 25 | PyAPI_FUNC(int) _PyEval_MakePendingCalls(PyThreadState *); |
| 26 | |
| 27 | PyAPI_FUNC(Py_ssize_t) (freefunc); |
| 28 | // Old name -- remove when this API changes: |
| 29 | _Py_DEPRECATED_EXTERNALLY(3.12) static inline Py_ssize_t |
| 30 | (freefunc f) { |
| 31 | return PyUnstable_Eval_RequestCodeExtraIndex(f); |
| 32 | } |
| 33 | |
| 34 | PyAPI_FUNC(int) _PyEval_SliceIndex(PyObject *, Py_ssize_t *); |
| 35 | PyAPI_FUNC(int) _PyEval_SliceIndexNotNone(PyObject *, Py_ssize_t *); |
| 36 | |