mirror of
https://github.com/python/cpython.git
synced 2026-06-09 11:22:06 +00:00
Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Victor Stinner <vstinner@python.org>
21 lines
530 B
C
21 lines
530 B
C
#ifndef Py_CPYTHON_TRACEBACK_H
|
|
# error "this header file must not be included directly"
|
|
#endif
|
|
|
|
typedef struct _traceback PyTracebackObject;
|
|
|
|
struct _traceback {
|
|
PyObject_HEAD
|
|
PyTracebackObject *tb_next;
|
|
PyFrameObject *tb_frame;
|
|
int tb_lasti;
|
|
int tb_lineno;
|
|
};
|
|
|
|
PyAPI_FUNC(const char*) PyUnstable_DumpTraceback(int fd, PyThreadState *tstate);
|
|
|
|
PyAPI_FUNC(const char*) PyUnstable_DumpTracebackThreads(
|
|
int fd,
|
|
PyInterpreterState *interp,
|
|
PyThreadState *current_tstate,
|
|
Py_ssize_t max_threads);
|