[−][src]Function wamr_sys::wasm_runtime_call_wasm_v
pub unsafe extern "C" fn wasm_runtime_call_wasm_v(
exec_env: wasm_exec_env_t,
function: wasm_function_inst_t,
num_results: u32,
results: *mut wasm_val_t,
num_args: u32,
...
) -> bool
Call the given WASM function of a WASM module instance with provided results space and variant arguments (bytecode and AoT).
@param exec_env the execution environment to call the function, which must be created from wasm_create_exec_env() @param function the function to call @param num_results the number of results @param results the pre-alloced pointer to get the results @param num_args the number of arguments @param ... the variant arguments
@return true if success, false otherwise and exception will be thrown, the caller can call wasm_runtime_get_exception to get the exception info.