Skip to contents

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

Usage

wasmer_function_new_void_to_i32(ptr, rfun)

Details

Create a WASM host function with signature void -> i32

Examples

if (FALSE) { # \dontrun{
wasmer_function_new_void_to_i32(ptr, function() 42)
} # }