Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: bc1c8af8ef2563802767404c78c8ec6d6a967897 authored by Ɓukasz Langa on 27 April 2020, 20:44:04 UTC
Python 3.9.0a6
Tip revision: bc1c8af
traceback.h
#ifndef Py_CPYTHON_TRACEBACK_H
#  error "this header file must not be included directly"
#endif

#ifdef __cplusplus
extern "C" {
#endif

typedef struct _traceback {
    PyObject_HEAD
    struct _traceback *tb_next;
    struct _frame *tb_frame;
    int tb_lasti;
    int tb_lineno;
} PyTracebackObject;

PyAPI_FUNC(int) _Py_DisplaySourceLine(PyObject *, PyObject *, int, int);
PyAPI_FUNC(void) _PyTraceback_Add(const char *, const char *, int);

#ifdef __cplusplus
}
#endif
back to top