diff options
Diffstat (limited to 'Include/cpython/traceback.h')
| -rw-r--r-- | Include/cpython/traceback.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Include/cpython/traceback.h b/Include/cpython/traceback.h index d0dde335cf..a4e087b2b4 100644 --- a/Include/cpython/traceback.h +++ b/Include/cpython/traceback.h @@ -2,13 +2,15 @@ # error "this header file must not be included directly" #endif -typedef struct _traceback { +typedef struct _traceback PyTracebackObject; + +struct _traceback { PyObject_HEAD - struct _traceback *tb_next; + PyTracebackObject *tb_next; PyFrameObject *tb_frame; int tb_lasti; int tb_lineno; -} PyTracebackObject; +}; PyAPI_FUNC(int) _Py_DisplaySourceLine(PyObject *, PyObject *, int, int, int *, PyObject **); PyAPI_FUNC(void) _PyTraceback_Add(const char *, const char *, int); |
