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

source code of include/python3.10/cpython/traceback.h