wasmer_wasix::syscalls::wasix::closure_free

Function closure_free

Source
pub fn closure_free(
    ctx: FunctionEnvMut<'_, WasiEnv>,
    closure: u32,
) -> Result<Errno, WasiError>
Expand description

Free a previously allocated slot for a closure in the __indirect_function_table

After calling this it is undefined behavior to call the function at the given index.