Skip to content

Commit

Permalink
Merge pull request #2406 from alex/patch-1
Browse files Browse the repository at this point in the history
Expose PyFrame_GetCode
  • Loading branch information
messense committed May 29, 2022
2 parents 25d2db9 + 7a7926c commit f84c740
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyo3-ffi/src/pyframe.rs
@@ -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))]
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(any(Py_3_10, all(Py_3_9, not(Py_LIMITED_API))))]
pub fn PyFrame_GetCode(f: *mut PyFrameObject) -> *mut PyCodeObject;
}
// skipped PyFrame_GetCode

0 comments on commit f84c740

Please sign in to comment.