diff options
| author | Victor Stinner <vstinner@python.org> | 2020-04-28 16:32:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-28 16:32:48 +0200 |
| commit | 7c59d7c9860cdbaf4a9c26c9142aebd3259d046e (patch) | |
| tree | 25d14f4febac1b124878b5875a936b47c6706771 /Include/cpython/traceback.h | |
| parent | 5da352616fb8290e3c2c0245f553280824093c6a (diff) | |
| download | cpython-git-7c59d7c9860cdbaf4a9c26c9142aebd3259d046e.tar.gz | |
bpo-40421: Add pyframe.h header file (GH-19755)
Add a new separated pyframe.h header file of the PyFrame public C
API: it is included by Python.h.
Add PyFrame_GetLineNumber() to the limited C API.
Replace "struct _frame" with "PyFrameObject" in header files.
PyFrameObject is now defined as struct _frame by pyframe.h which is
included early enough in Python.h.
Diffstat (limited to 'Include/cpython/traceback.h')
| -rw-r--r-- | Include/cpython/traceback.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/cpython/traceback.h b/Include/cpython/traceback.h index 746097daaf..837470c3ba 100644 --- a/Include/cpython/traceback.h +++ b/Include/cpython/traceback.h @@ -9,7 +9,7 @@ extern "C" { typedef struct _traceback { PyObject_HEAD struct _traceback *tb_next; - struct _frame *tb_frame; + PyFrameObject *tb_frame; int tb_lasti; int tb_lineno; } PyTracebackObject; |
