| 1 | #[cfg(not(GraalPy))] |
| 2 | #[cfg(any(Py_3_10, all(Py_3_9, not(Py_LIMITED_API))))] |
| 3 | use crate::PyCodeObject; |
| 4 | use crate::PyFrameObject; |
| 5 | use std::ffi::c_int; |
| 6 | |
| 7 | extern "C" { |
| 8 | pub fn PyFrame_GetLineNumber(frame: *mut PyFrameObject) -> c_int; |
| 9 | |
| 10 | #[cfg(not(GraalPy))] |
| 11 | #[cfg(any(Py_3_10, all(Py_3_9, not(Py_LIMITED_API))))] |
| 12 | pub fn PyFrame_GetCode(frame: *mut PyFrameObject) -> *mut PyCodeObject; |
| 13 | } |