File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ Add ` PyTracebackObject ` struct definition
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ pub(crate) mod pythonrun;
4040pub ( crate ) mod floatobject;
4141pub ( crate ) mod pyframe;
4242pub ( crate ) mod pyhash;
43+ pub ( crate ) mod traceback;
4344pub ( crate ) mod tupleobject;
4445pub ( crate ) mod unicodeobject;
4546pub ( crate ) mod weakrefobject;
@@ -83,6 +84,7 @@ pub use self::pylifecycle::*;
8384pub use self :: pymem:: * ;
8485pub use self :: pystate:: * ;
8586pub use self :: pythonrun:: * ;
87+ pub use self :: traceback:: * ;
8688pub use self :: tupleobject:: * ;
8789pub use self :: unicodeobject:: * ;
8890#[ cfg( not( any( PyPy , GraalPy ) ) ) ]
Original file line number Diff line number Diff line change 1+ use crate :: object:: PyObject ;
2+ use crate :: PyFrameObject ;
3+ use std:: ffi:: c_int;
4+
5+ #[ repr( C ) ]
6+ pub struct PyTracebackObject {
7+ ob_base : PyObject ,
8+ tb_next : * mut PyTracebackObject ,
9+ tb_frame : * mut PyFrameObject ,
10+ tb_lasti : c_int ,
11+ tb_lineno : c_int ,
12+ }
You can’t perform that action at this time.
0 commit comments