Macro rassert_rs::rassert_notify
source · [−]macro_rules! rassert_notify {
($expr: expr, $notify: expr) => { ... };
}
Expand description
Helper macro to cleanly execute an expression and return out of the function if it fails.
Example
use rassert_rs::rassert_notify;
fn main() {
rassert_notify!(42 != 42, println!("Yikes"));
// Prints 'Yikes'
}