blob: 837470c3ba2bca9491901e7d8cf14557fde27130 [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;
Victor Stinner7c59d7c2020-04-28 16:32:48 +020012 PyFrameObject *tb_frame;
Victor Stinnered488662019-05-20 00:14:57 +020013 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