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