Expose PyFrame_GetCode
This commit is contained in:
parent
eafbbc5417
commit
b651502c11
|
@ -1,3 +1,5 @@
|
|||
#[cfg(Py_3_9)]
|
||||
use crate::PyCodeObject;
|
||||
#[cfg(not(Py_LIMITED_API))]
|
||||
use crate::PyFrameObject;
|
||||
use std::os::raw::c_int;
|
||||
|
@ -7,5 +9,6 @@ opaque_struct!(PyFrameObject);
|
|||
|
||||
extern "C" {
|
||||
pub fn PyFrame_GetLineNumber(f: *mut PyFrameObject) -> c_int;
|
||||
#[cfg(Py_3_9)]
|
||||
pub fn PyFrame_GetCode(f: *mut PyFrameObject) -> *mut PyCodeObject;
|
||||
}
|
||||
// skipped PyFrame_GetCode
|
||||
|
|
Loading…
Reference in a new issue