Skip to content

Commit

Permalink
Merge pull request #1164 from alex/abi3-no-free-func
Browse files Browse the repository at this point in the history
Properly mark a function as limited API only
  • Loading branch information
kngwyu authored Sep 8, 2020
2 parents 3b61df2 + 71a7b1a commit 4325a59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ffi/ceval.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#[cfg(Py_3_6)]
#[cfg(all(Py_3_6, not(Py_LIMITED_API)))]
use crate::ffi::code::FreeFunc;
use crate::ffi::object::PyObject;
use crate::ffi::pystate::PyThreadState;
Expand Down Expand Up @@ -69,7 +69,7 @@ extern "C" {
arg1: *mut crate::ffi::PyFrameObject,
exc: c_int,
) -> *mut PyObject;
#[cfg(Py_3_6)]
#[cfg(all(Py_3_6, not(Py_LIMITED_API)))]
pub fn _PyEval_RequestCodeExtraIndex(func: FreeFunc) -> c_int;
pub fn PyEval_EvalFrameEx(f: *mut crate::ffi::PyFrameObject, exc: c_int) -> *mut PyObject;
#[cfg_attr(PyPy, link_name = "PyPyEval_SaveThread")]
Expand Down

0 comments on commit 4325a59

Please sign in to comment.