[][src]Function wasmer_vm::raise_lib_trap

pub unsafe fn raise_lib_trap(trap: Trap) -> !

Raises a trap from inside library code immediately.

This function performs as-if a wasm trap was just executed. This trap payload is then returned from wasmer_call and wasmer_call_trampoline below.

Safety

Only safe to call when wasm code is on the stack, aka wasmer_call or wasmer_call_trampoline must have been previously called.