traceback.h 585 B

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