Skip to content

Commit

Permalink
Update pyframe.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
alex authored May 29, 2022
1 parent b651502 commit 7a7926c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyo3-ffi/src/pyframe.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#[cfg(Py_3_9)]
#[cfg(any(Py_3_10, all(Py_3_9, not(Py_LIMITED_API))))]
use crate::PyCodeObject;
#[cfg(not(Py_LIMITED_API))]
use crate::PyFrameObject;
Expand All @@ -9,6 +9,6 @@ opaque_struct!(PyFrameObject);

extern "C" {
pub fn PyFrame_GetLineNumber(f: *mut PyFrameObject) -> c_int;
#[cfg(Py_3_9)]
#[cfg(any(Py_3_10, all(Py_3_9, not(Py_LIMITED_API))))]
pub fn PyFrame_GetCode(f: *mut PyFrameObject) -> *mut PyCodeObject;
}

0 comments on commit 7a7926c

Please sign in to comment.