commit
f84c740e41
|
@ -1,3 +1,5 @@
|
||||||
|
#[cfg(any(Py_3_10, all(Py_3_9, not(Py_LIMITED_API))))]
|
||||||
|
use crate::PyCodeObject;
|
||||||
#[cfg(not(Py_LIMITED_API))]
|
#[cfg(not(Py_LIMITED_API))]
|
||||||
use crate::PyFrameObject;
|
use crate::PyFrameObject;
|
||||||
use std::os::raw::c_int;
|
use std::os::raw::c_int;
|
||||||
|
@ -7,5 +9,6 @@ opaque_struct!(PyFrameObject);
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
pub fn PyFrame_GetLineNumber(f: *mut PyFrameObject) -> c_int;
|
pub fn PyFrame_GetLineNumber(f: *mut PyFrameObject) -> c_int;
|
||||||
|
#[cfg(any(Py_3_10, all(Py_3_9, not(Py_LIMITED_API))))]
|
||||||
|
pub fn PyFrame_GetCode(f: *mut PyFrameObject) -> *mut PyCodeObject;
|
||||||
}
|
}
|
||||||
// skipped PyFrame_GetCode
|
|
||||||
|
|
Loading…
Reference in New Issue