Macro stakker::ret_panic

source ·
macro_rules! ret_panic {
    ($arg:expr) => { ... };
}
Expand description

Create a Ret instance which panics when called

ret_panic!(panic_msg)

Ignores the case where the Ret instance is dropped. Argument will typically be a String or &str. Note that this will receive and ignore any message type. Implemented using Ret::panic.