Skip to contents

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

Usage

wasmer_function_new_i32_to_i32(ptr, rfun)

Details

Create a WASM host function with signature i32 -> i32

Examples

if (FALSE) { # \dontrun{
wasmer_function_new_i32_to_i32(ptr, function(x) x)
} # }