ceval.h 1.4 KB

123456789101112131415161718192021222324252627282930
  1. #ifndef Py_CPYTHON_CEVAL_H
  2. # error "this header file must not be included directly"
  3. #endif
  4. PyAPI_FUNC(void) PyEval_SetProfile(Py_tracefunc, PyObject *);
  5. PyAPI_DATA(int) _PyEval_SetProfile(PyThreadState *tstate, Py_tracefunc func, PyObject *arg);
  6. PyAPI_FUNC(void) PyEval_SetTrace(Py_tracefunc, PyObject *);
  7. PyAPI_FUNC(int) _PyEval_SetTrace(PyThreadState *tstate, Py_tracefunc func, PyObject *arg);
  8. PyAPI_FUNC(int) _PyEval_GetCoroutineOriginTrackingDepth(void);
  9. PyAPI_FUNC(int) _PyEval_SetAsyncGenFirstiter(PyObject *);
  10. PyAPI_FUNC(PyObject *) _PyEval_GetAsyncGenFirstiter(void);
  11. PyAPI_FUNC(int) _PyEval_SetAsyncGenFinalizer(PyObject *);
  12. PyAPI_FUNC(PyObject *) _PyEval_GetAsyncGenFinalizer(void);
  13. /* Helper to look up a builtin object */
  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. PyAPI_FUNC(PyObject *) _PyEval_EvalFrameDefault(PyThreadState *tstate, PyFrameObject *f, int exc);
  20. PyAPI_FUNC(void) _PyEval_SetSwitchInterval(unsigned long microseconds);
  21. PyAPI_FUNC(unsigned long) _PyEval_GetSwitchInterval(void);
  22. PyAPI_FUNC(Py_ssize_t) _PyEval_RequestCodeExtraIndex(freefunc);
  23. PyAPI_FUNC(int) _PyEval_SliceIndex(PyObject *, Py_ssize_t *);
  24. PyAPI_FUNC(int) _PyEval_SliceIndexNotNone(PyObject *, Py_ssize_t *);