wasm_trap_new

Function wasm_trap_new 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn wasm_trap_new( _store: &mut wasm_store_t, message: &wasm_message_t, ) -> Option<Box<wasm_trap_t>>
Expand description

Create a new trap message.

Be careful, the message is typed with wasm_message_t which represents a null-terminated string.

§Example

See the module’s documentation for a complete example.