wasmtime_linker_define_unknown_imports_as_default_values function

  1. @Native<Pointer<wasmtime_error_t> Function(Pointer<wasmtime_linker_t> linker, Pointer<wasmtime_context_t> store, Pointer<wasmtime_module_t> module)>(ffi.Pointer<wasmtime_linker_t>, ffi.Pointer<wasmtime_context_t>, ffi.Pointer<wasmtime_module_t>)>()
Pointer<wasmtime_error_t> wasmtime_linker_define_unknown_imports_as_default_values(
  1. Pointer<wasmtime_linker_t> linker,
  2. Pointer<wasmtime_context_t> store,
  3. Pointer<wasmtime_module_t> module
)

\brief Ensures that module can be instantiated with this linker by defining all functions otherwise missing from this linker to return the 'default' for what that import is.

Implementation

@ffi.Native<
  ffi.Pointer<wasmtime_error_t> Function(
    ffi.Pointer<wasmtime_linker_t>,
    ffi.Pointer<wasmtime_context_t>,
    ffi.Pointer<wasmtime_module_t>,
  )
>()
external ffi.Pointer<wasmtime_error_t>
wasmtime_linker_define_unknown_imports_as_default_values(
  ffi.Pointer<wasmtime_linker_t> linker,
  ffi.Pointer<wasmtime_context_t> store,
  ffi.Pointer<wasmtime_module_t> module,
);