Victor Stinner | ed48866 | 2019-05-20 00:14:57 +0200 | [diff] [blame] | 1 | #ifndef Py_CPYTHON_TRACEBACK_H |
| 2 | # error "this header file must not be included directly" |
| 3 | #endif |
| 4 | |
Victor Stinner | ed48866 | 2019-05-20 00:14:57 +0200 | [diff] [blame] | 5 | typedef struct _traceback { |
| 6 | PyObject_HEAD |
| 7 | struct _traceback *tb_next; |
Victor Stinner | 7c59d7c | 2020-04-28 16:32:48 +0200 | [diff] [blame] | 8 | PyFrameObject *tb_frame; |
Victor Stinner | ed48866 | 2019-05-20 00:14:57 +0200 | [diff] [blame] | 9 | int tb_lasti; |
| 10 | int tb_lineno; |
| 11 | } PyTracebackObject; |
| 12 | |
| 13 | PyAPI_FUNC(int) _Py_DisplaySourceLine(PyObject *, PyObject *, int, int); |
| 14 | PyAPI_FUNC(void) _PyTraceback_Add(const char *, const char *, int); |