Skip to contents

Call an exported WASM function with type safety and conversion.

Usage

wasmer_call_function_safe_ext(ptr, instance_name, function_name, args)

Arguments

ptr

External pointer to WasmerRuntime.

instance_name

String name of the instance.

function_name

String name of the function to call.

args

List of arguments with proper type conversion.

Value

List with success flag and result or error

Details

Advanced function calling with type safety

Examples

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