Function initialize_host_envs

Source
pub unsafe fn initialize_host_envs<Err: Sized>(
    handle: &Mutex<InstanceHandle>,
    instance_ptr: *const c_void,
) -> Result<(), Err>
Expand description

Initializes the host environments.

§Safety

  • This function must be called with the correct Err type parameter: the error type is not visible to code in wasmer_vm, so it’s the caller’s responsibility to ensure these functions are called with the correct type.
  • instance_ptr must point to a valid wasmer::Instance.