ffi_prep_cif_var() is currently used if the vargs array is not empty. However, a function can be variadic without any variadic arguments, which would change the calling convention on some platforms. We can currently not detect this.
Maybe use Option (Array CValue) instead of just the array.
ffi_prep_cif_var()
is currently used if thevargs
array is not empty. However, a function can be variadic without any variadic arguments, which would change the calling convention on some platforms. We can currently not detect this.Maybe use
Option (Array CValue)
instead of just the array.