pub unsafe extern "C" fn wasm_runtime_call_wasm_a(
exec_env: wasm_exec_env_t,
function: wasm_function_inst_t,
num_results: u32,
results: *mut wasm_val_t,
num_args: u32,
args: *mut wasm_val_t,
) -> bool
Expand description
Call the given WASM function of a WASM module instance with provided results space and 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 args the 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.