mirror of
https://github.com/n08i40k/schedule-parser-rusted.git
synced 2025-12-06 17:57:47 +03:00
22 lines
331 B
Rust
22 lines
331 B
Rust
#[macro_export]
|
|
macro_rules! or_continue {
|
|
( $e:expr ) => {{
|
|
if let Some(x) = $e {
|
|
x
|
|
} else {
|
|
continue;
|
|
}
|
|
}};
|
|
}
|
|
|
|
#[macro_export]
|
|
macro_rules! or_break {
|
|
( $e:expr ) => {{
|
|
if let Some(x) = $e {
|
|
x
|
|
} else {
|
|
break;
|
|
}
|
|
}};
|
|
}
|