Files
orchid/src/utils/unwrap_or_continue.rs
Lawrence Bethlenfalvy 329dea72b7 Mainly worked on the rule matcher
Also fixed the name collector, and lambda parameters are no longer
resolved at parsing to support planned macro-based pattern matching.
The rule matcher clones a lot, the number of clones could be zero.
2022-08-06 18:12:51 +02:00

6 lines
134 B
Rust

#[macro_export]
macro_rules! unwrap_or_continue {
($m:expr) => {
{ if let Some(res) = ($m) {res} else {continue} }
}
}