2021-11-07 23:43:01 -05:00
|
|
|
#ifndef Py_CPYTHON_TRACEBACK_H
|
|
|
|
|
# error "this header file must not be included directly"
|
|
|
|
|
#endif
|
|
|
|
|
|
2024-03-27 20:45:53 -04:00
|
|
|
typedef struct _traceback PyTracebackObject;
|
2021-11-07 23:43:01 -05:00
|
|
|
|
2024-03-27 20:45:53 -04:00
|
|
|
struct _traceback {
|
2021-11-07 23:43:01 -05:00
|
|
|
PyObject_HEAD
|
2024-03-27 20:45:53 -04:00
|
|
|
PyTracebackObject *tb_next;
|
2021-11-07 23:43:01 -05:00
|
|
|
PyFrameObject *tb_frame;
|
|
|
|
|
int tb_lasti;
|
|
|
|
|
int tb_lineno;
|
2024-03-27 20:45:53 -04:00
|
|
|
};
|
2021-11-07 23:43:01 -05:00
|
|
|
|
2024-03-27 20:45:53 -04:00
|
|
|
PyAPI_FUNC(int) _Py_DisplaySourceLine(PyObject *, PyObject *, int, int, int *, PyObject **);
|
2021-11-07 23:43:01 -05:00
|
|
|
PyAPI_FUNC(void) _PyTraceback_Add(const char *, const char *, int);
|