mirror of
https://github.com/n08i40k/schedule-parser-rusted.git
synced 2025-12-08 10:38:57 +03:00
feat(schedule)!: move schedule parser, downloader, and updater to external library
This can be used to support more schedule formats in the future.
This commit is contained in:
21
providers/provider-engels-polytechnic/src/parser/macros.rs
Normal file
21
providers/provider-engels-polytechnic/src/parser/macros.rs
Normal file
@@ -0,0 +1,21 @@
|
||||
#[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;
|
||||
}
|
||||
}};
|
||||
}
|
||||
Reference in New Issue
Block a user