pyo3_ffi/
pyframe.rs

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