blob: 746097daaf9400cfb783eba79d73d70d32217c69 [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
5#ifdef __cplusplus
6extern "C" {
7#endif
8
9typedef 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
17PyAPI_FUNC(int) _Py_DisplaySourceLine(PyObject *, PyObject *, int, int);
18PyAPI_FUNC(void) _PyTraceback_Add(const char *, const char *, int);
19
20#ifdef __cplusplus
21}
22#endif