Module macros

Source
Expand description

Macros to simplify some common WASI-specific tasks.

Macrosยง

get_input_str ๐Ÿ”’
Reads a string from Wasm memory.
get_input_str_bus ๐Ÿ”’
get_input_str_bus_ok ๐Ÿ”’
get_input_str_ok ๐Ÿ”’
wasi_dl_err ๐Ÿ”’
wasi_try ๐Ÿ”’
Like the try! macro or ? syntax: returns the value if the computation succeeded or returns the error value.
wasi_try_dl ๐Ÿ”’
wasi_try_mem ๐Ÿ”’
Like wasi_try but converts a MemoryAccessError to a wasi::Errno.
wasi_try_mem_ok ๐Ÿ”’
Like wasi_try but converts a MemoryAccessError to a wasi::Errno.
wasi_try_mem_ok_ok ๐Ÿ”’
Like wasi_try but converts a MemoryAccessError to a wasi::Errno.
wasi_try_ok ๐Ÿ”’
Like the try! macro or ? syntax: returns the value if the computation succeeded or returns the error value. Results are wrapped in an Ok
wasi_try_ok_ok ๐Ÿ”’