Skip to contents

Call an exported function from a WASM instance.

Usage

wasmer_call_function_ext(ptr, instance_name, function_name, args)

Arguments

ptr

External pointer to WasmerRuntime.

instance_name

Name of the instance.

function_name

Name of the function to call.

args

Arguments as R list.

Value

List with success flag and result or error

Details

Call an exported function from a WASM instance

Examples

if (FALSE) { # \dontrun{
wasmer_call_function_ext(ptr, "inst1", "add", list(1, 2))
} # }