ceval.h 1.5 KB

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