Skip to content

Commit

Permalink
graalpy: disable assertion that does not apply to graalpy
Browse files Browse the repository at this point in the history
  • Loading branch information
timfel committed Sep 15, 2023
1 parent c8ec117 commit 70deae9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/impl_/trampoline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ pub unsafe fn module_init(
#[inline]
pub unsafe fn noargs(
slf: *mut ffi::PyObject,
args: *mut ffi::PyObject,
_args: *mut ffi::PyObject,
f: for<'py> unsafe fn(Python<'py>, *mut ffi::PyObject) -> PyResult<*mut ffi::PyObject>,
) -> *mut ffi::PyObject {
debug_assert!(args.is_null());
#[cfg(not(GraalPy))] // this is not specified and GraalPy does not pass null here
debug_assert!(_args.is_null());
trampoline(|py| f(py, slf))
}

Expand Down

0 comments on commit 70deae9

Please sign in to comment.