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 Jun 16, 2023
1 parent 7c1c6f1 commit 9b9ddd6
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_inner(|py| f(py, slf))
}

Expand Down

0 comments on commit 9b9ddd6

Please sign in to comment.