traceback.h 473 B

12345678910111213141516171819202122
  1. #ifndef Py_CPYTHON_TRACEBACK_H
  2. # error "this header file must not be included directly"
  3. #endif
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. typedef struct _traceback {
  8. PyObject_HEAD
  9. struct _traceback *tb_next;
  10. PyFrameObject *tb_frame;
  11. int tb_lasti;
  12. int tb_lineno;
  13. } PyTracebackObject;
  14. PyAPI_FUNC(int) _Py_DisplaySourceLine(PyObject *, PyObject *, int, int);
  15. PyAPI_FUNC(void) _PyTraceback_Add(const char *, const char *, int);
  16. #ifdef __cplusplus
  17. }
  18. #endif