1#[cfg(any(Py_3_10, all(Py_3_9, not(Py_LIMITED_API))))]
2use crate::PyCodeObject;
3#[cfg(not(Py_LIMITED_API))]
4use crate::PyFrameObject;
5use std::os::raw::c_int;
6
7#[cfg(Py_LIMITED_API)]
8opaque_struct!(PyFrameObject);
9
10extern "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