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