Function wasmer_c_api::error::wasmer_last_error_length [−][src]
#[no_mangle]pub extern "C" fn wasmer_last_error_length() -> c_int
Gets the length in bytes of the last error if any, zero otherwise.
This can be used to dynamically allocate a buffer with the correct number of bytes needed to store a message.
Example
See this module's documentation to get a complete example.