macro_rules! rassert_notify_continue {
($expr: expr, $notify: expr) => { ... };
}
Expand description
Helper macro to cleanly execute an expression and continue a loop if it fails.
ยงExample
use rassert_rs::rassert_notify_continue;
fn main() {
let mut i = 1;
while i != 5 {
i += 1;
rassert_notify_continue!(42 != 42, println!("Yikes"));
// Prints 'Yikes' and continues the loop
}
}