Macro oc_wasm_safe::panic_or_trap [−][src]
macro_rules! panic_or_trap { ($message : literal) => { ... }; }
Expand description
Panics or traps depending on the state of the panic
feature.
If the panic
feature is enabled, this macro panics with the given message. If it is disabled,
this macro invokes Wasm UNREACHABLE
(trap) instruction, instantly terminating execution; the
message is ignored.