Skip to contents

Create a WASM host function that takes two i32 arguments and returns an i32, using an R function as the implementation.

Usage

wasmer_function_new_i32_i32_to_i32(ptr, rfun)

Details

Create a WASM host function with signature (i32, i32) -> i32

Examples

if (FALSE) { # \dontrun{
wasmer_function_new_i32_i32_to_i32(ptr, function(x, y) x + y)
} # }