pub unsafe extern "C" fn wasm_runtime_call_indirect(
exec_env: wasm_exec_env_t,
element_index: u32,
argc: u32,
argv: *mut u32,
) -> bool
Expand description
Call a function reference of a given WASM runtime instance with arguments.
Note: this can be used to call a function which is not exported by the module explicitly. You might consider it as an abstraction violation.
@param exec_env the execution environment to call the function which must be created from wasm_create_exec_env() @param element_index the function reference index, usually provided by the caller of a registered native function @param argc the number of arguments @param argv the arguments. If the function method has return value, the first (or first two in case 64-bit return value) element of argv stores the return value of the called WASM function after this function returns.
@return true if success, false otherwise and exception will be thrown, the caller can call wasm_runtime_get_exception to get exception info.