Macro ffi_helpers::catch_panic[][src]

macro_rules! catch_panic {
    ($($tokens : tt) *) => { ... };
}
Expand description

A convenience macro for running a fallible operation (which may panic) and returning Nullable::NULL if there are any errors.

This is a simple wrapper around catch_panic() so if there are any errors the LAST_ERROR will be updated accordingly.

Examples

TODO: Insert an example or two here