#[no_mangle]
pub unsafe extern "C" fn wasm_func_call(
func: &mut wasm_func_t,
params: *const wasm_val_vec_t,
results: *mut wasm_val_vec_t,
) -> *mut wasm_trap_tExpand description
Calls the wasm_func_t with the given params and stores the result in results.
- Returns a
wasm_trap_tif the Wasm function call failed or trapped. - Returns a
nullpointer if the Wasm function call succeeded.
Wraps Func::call.
§Safety
It is the caller’s responsibility not to alias the wasm_func_t
with its underlying, internal WasmStoreRef.