jpayne@69: #ifndef Py_CPYTHON_TRACEBACK_H jpayne@69: # error "this header file must not be included directly" jpayne@69: #endif jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: extern "C" { jpayne@69: #endif jpayne@69: jpayne@69: typedef struct _traceback { jpayne@69: PyObject_HEAD jpayne@69: struct _traceback *tb_next; jpayne@69: struct _frame *tb_frame; jpayne@69: int tb_lasti; jpayne@69: int tb_lineno; jpayne@69: } PyTracebackObject; jpayne@69: jpayne@69: PyAPI_FUNC(int) _Py_DisplaySourceLine(PyObject *, PyObject *, int, int); jpayne@69: PyAPI_FUNC(void) _PyTraceback_Add(const char *, const char *, int); jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: } jpayne@69: #endif