traceback.h 444 B

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