[−][src]Function wamr_sys::wasm_application_execute_func
pub unsafe extern "C" fn wasm_application_execute_func(
module_inst: wasm_module_inst_t,
name: *const c_char,
argc: i32,
argv: *mut *mut c_char
) -> bool
Find the specified function in argv[0] from a WASM module instance and execute that function.
@param module_inst the WASM module instance @param name the name of the function to execute. to indicate the module name via: $module_name$function_name or just a function name: function_name @param argc the number of arguments @param argv the arguments array
@return true if the specified function is called, false otherwise and exception will be thrown, the caller can call wasm_runtime_get_exception to get the exception info.