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 | |
| 5 | #ifdef __cplusplus |
| 6 | extern "C" { |
| 7 | #endif |
| 8 | |
| 9 | typedef struct _traceback { |
| 10 | PyObject_HEAD |
| 11 | struct _traceback *tb_next; |
| 12 | struct _frame *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 |