diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-05-19 22:14:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-19 22:14:57 (GMT) |
commit | ed48866c55b8e4ee14faa8b5ad97819e8e74c98b (patch) | |
tree | 94bd31c68f05ee28624c38c2264918e89e4ca30f /Include/cpython | |
parent | d673810b9d9df6fbd29f5b7db3973d5adae10fd3 (diff) | |
download | cpython-ed48866c55b8e4ee14faa8b5ad97819e8e74c98b.zip cpython-ed48866c55b8e4ee14faa8b5ad97819e8e74c98b.tar.gz cpython-ed48866c55b8e4ee14faa8b5ad97819e8e74c98b.tar.bz2 |
bpo-35134: Split traceback.h header (GH-13430)
Add new Include/cpython/traceback.h and Include/internal/traceback.h
header files.
Diffstat (limited to 'Include/cpython')
-rw-r--r-- | Include/cpython/traceback.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Include/cpython/traceback.h b/Include/cpython/traceback.h new file mode 100644 index 0000000..746097d --- /dev/null +++ b/Include/cpython/traceback.h @@ -0,0 +1,22 @@ +#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 |