1 | #[cfg (not(GraalPy))] |
2 | #[cfg (any(Py_3_10, all(Py_3_9, not(Py_LIMITED_API))))] |
3 | use crate::PyCodeObject; |
4 | #[cfg (not(Py_LIMITED_API))] |
5 | use crate::PyFrameObject; |
6 | use std::os::raw::c_int; |
7 | |
8 | #[cfg (Py_LIMITED_API)] |
9 | opaque_struct!(PyFrameObject); |
10 | |
11 | unsafeextern "C" { |
12 | pub unsafefn PyFrame_GetLineNumber(f: *mut PyFrameObject) -> c_int; |
13 | #[cfg (not(GraalPy))] |
14 | #[cfg (any(Py_3_10, all(Py_3_9, not(Py_LIMITED_API))))] |
15 | pub unsafefn PyFrame_GetCode(f: *mut PyFrameObject) -> *mut PyCodeObject; |
16 | } |
17 | |