Skip to content

Commit

Permalink
Expose PyFrame_GetCode
Browse files Browse the repository at this point in the history
  • Loading branch information
alex authored May 28, 2022
1 parent eafbbc5 commit b651502
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyo3-ffi/src/pyframe.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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

0 comments on commit b651502

Please sign in to comment.