17 lines
394 B
Rust
17 lines
394 B
Rust
use libc::c_int;
|
|
use object::*;
|
|
|
|
extern "C" {
|
|
pub fn PyTraceBack_Here(arg1: *mut ::PyFrameObject) -> c_int;
|
|
pub fn PyTraceBack_Print(arg1: *mut PyObject, arg2: *mut PyObject)
|
|
-> c_int;
|
|
|
|
pub static mut PyTraceBack_Type: PyTypeObject;
|
|
}
|
|
|
|
#[inline(always)]
|
|
pub unsafe fn PyTraceBack_Check(op : *mut PyObject) -> c_int {
|
|
(Py_TYPE(op) == &mut PyTraceBack_Type) as c_int
|
|
}
|
|
|