traceback.h 601 B

12345678910111213141516171819202122232425262728
  1. #ifndef Py_TRACEBACK_H
  2. #define Py_TRACEBACK_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. struct _frame;
  7. /* Traceback interface */
  8. PyAPI_FUNC(int) PyTraceBack_Here(struct _frame *);
  9. PyAPI_FUNC(int) PyTraceBack_Print(PyObject *, PyObject *);
  10. /* Reveal traceback type so we can typecheck traceback objects */
  11. PyAPI_DATA(PyTypeObject) PyTraceBack_Type;
  12. #define PyTraceBack_Check(v) (Py_TYPE(v) == &PyTraceBack_Type)
  13. #ifndef Py_LIMITED_API
  14. # define Py_CPYTHON_TRACEBACK_H
  15. # include "cpython/traceback.h"
  16. # undef Py_CPYTHON_TRACEBACK_H
  17. #endif
  18. #ifdef __cplusplus
  19. }
  20. #endif
  21. #endif /* !Py_TRACEBACK_H */