2019-11-04 14:48:34 -04:00
|
|
|
#ifndef Py_CPYTHON_CEVAL_H
|
|
|
|
# error "this header file must not be included directly"
|
|
|
|
#endif
|
|
|
|
|
2019-11-15 20:04:44 -04:00
|
|
|
PyAPI_FUNC(void) PyEval_SetProfile(Py_tracefunc, PyObject *);
|
2020-03-13 12:39:12 -03:00
|
|
|
PyAPI_DATA(int) _PyEval_SetProfile(PyThreadState *tstate, Py_tracefunc func, PyObject *arg);
|
2019-11-15 20:04:44 -04:00
|
|
|
PyAPI_FUNC(void) PyEval_SetTrace(Py_tracefunc, PyObject *);
|
2020-03-13 12:39:12 -03:00
|
|
|
PyAPI_FUNC(int) _PyEval_SetTrace(PyThreadState *tstate, Py_tracefunc func, PyObject *arg);
|
2019-11-15 20:04:44 -04:00
|
|
|
PyAPI_FUNC(int) _PyEval_GetCoroutineOriginTrackingDepth(void);
|
2020-03-26 09:11:13 -03:00
|
|
|
PyAPI_FUNC(int) _PyEval_SetAsyncGenFirstiter(PyObject *);
|
2019-11-15 20:04:44 -04:00
|
|
|
PyAPI_FUNC(PyObject *) _PyEval_GetAsyncGenFirstiter(void);
|
2020-03-26 09:11:13 -03:00
|
|
|
PyAPI_FUNC(int) _PyEval_SetAsyncGenFinalizer(PyObject *);
|
2019-11-15 20:04:44 -04:00
|
|
|
PyAPI_FUNC(PyObject *) _PyEval_GetAsyncGenFinalizer(void);
|
|
|
|
|
|
|
|
/* Helper to look up a builtin object */
|
|
|
|
PyAPI_FUNC(PyObject *) _PyEval_GetBuiltinId(_Py_Identifier *);
|
|
|
|
/* Look at the current frame's (if any) code's co_flags, and turn on
|
|
|
|
the corresponding compiler flags in cf->cf_flags. Return 1 if any
|
|
|
|
flag was set, else return 0. */
|
|
|
|
PyAPI_FUNC(int) PyEval_MergeCompilerFlags(PyCompilerFlags *cf);
|
|
|
|
|
2020-04-28 11:32:48 -03:00
|
|
|
PyAPI_FUNC(PyObject *) _PyEval_EvalFrameDefault(PyThreadState *tstate, PyFrameObject *f, int exc);
|
2019-11-15 20:04:44 -04:00
|
|
|
|
|
|
|
PyAPI_FUNC(void) _PyEval_SetSwitchInterval(unsigned long microseconds);
|
|
|
|
PyAPI_FUNC(unsigned long) _PyEval_GetSwitchInterval(void);
|
|
|
|
|
|
|
|
PyAPI_FUNC(Py_ssize_t) _PyEval_RequestCodeExtraIndex(freefunc);
|
|
|
|
|
|
|
|
PyAPI_FUNC(int) _PyEval_SliceIndex(PyObject *, Py_ssize_t *);
|
|
|
|
PyAPI_FUNC(int) _PyEval_SliceIndexNotNone(PyObject *, Py_ssize_t *);
|