Skip to content

Commit

Permalink
Add FFI definitions for Py_EnterRecursiveCall and
Browse files Browse the repository at this point in the history
`Py_LeaveRecursiveCall`
  • Loading branch information
messense committed Jul 15, 2022
1 parent 5a1be18 commit fea6abb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pyo3-ffi/src/ceval.rs
Expand Up @@ -73,8 +73,12 @@ extern "C" {
fn _Py_CheckRecursiveCall(_where: *mut c_char) -> c_int;
}

// skipped Py_EnterRecursiveCall
// skipped Py_LeaveRecursiveCall
extern "C" {
#[cfg(any(Py_3_9, not(Py_LIMITED_API)))]
pub fn Py_EnterRecursiveCall(arg1: *const c_char);
#[cfg(any(Py_3_9, not(Py_LIMITED_API)))]
pub fn Py_LeaveRecursiveCall();
}

extern "C" {
pub fn PyEval_GetFuncName(arg1: *mut PyObject) -> *const c_char;
Expand Down

0 comments on commit fea6abb

Please sign in to comment.