blob: aac5b42c344d3f6ebdb65d7837725218612d0576 [file] [log] [blame]
Victor Stinnered488662019-05-20 00:14:57 +02001#ifndef Py_CPYTHON_TRACEBACK_H
2# error "this header file must not be included directly"
3#endif
4
Victor Stinnered488662019-05-20 00:14:57 +02005typedef struct _traceback {
6 PyObject_HEAD
7 struct _traceback *tb_next;
Victor Stinner7c59d7c2020-04-28 16:32:48 +02008 PyFrameObject *tb_frame;
Victor Stinnered488662019-05-20 00:14:57 +02009 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);