Expose PyFrame_GetCode

This commit is contained in:
Alex Gaynor 2022-05-28 15:47:47 -04:00 committed by GitHub
parent eafbbc5417
commit b651502c11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,3 +1,5 @@
#[cfg(Py_3_9)]
use crate::PyCodeObject;
#[cfg(not(Py_LIMITED_API))]
use crate::PyFrameObject;
use std::os::raw::c_int;
@ -7,5 +9,6 @@ opaque_struct!(PyFrameObject);
extern "C" {
pub fn PyFrame_GetLineNumber(f: *mut PyFrameObject) -> c_int;
#[cfg(Py_3_9)]
pub fn PyFrame_GetCode(f: *mut PyFrameObject) -> *mut PyCodeObject;
}
// skipped PyFrame_GetCode