Skip to contents

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

Usage

wasmer_function_new_f64_to_f64(ptr, rfun)

Details

Create a WASM host function with signature f64 -> f64

Examples

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