pyforge_ffi/pyframe.rs
1#[cfg(any(Py_3_10, all(Py_3_9, not(Py_LIMITED_API))))]
2use crate::PyCodeObject;
3use crate::PyFrameObject;
4use std::ffi::c_int;
5
6extern_libpython! {
7 pub fn PyFrame_GetLineNumber(frame: *mut PyFrameObject) -> c_int;
8
9 #[cfg(any(Py_3_10, all(Py_3_9, not(Py_LIMITED_API))))]
10 pub fn PyFrame_GetCode(frame: *mut PyFrameObject) -> *mut PyCodeObject;
11}