diff options
| author | HampusM <hampus@hampusmat.com> | 2026-08-25 15:41:40 +0200 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-08-25 15:41:40 +0200 |
| commit | 4d011687e5e65b97168610659bc79330983cf59b (patch) | |
| tree | 69166d4ba315e0c749305dee1a1f851a557093ca /engine/src/util.rs | |
| parent | e8df35e08e43b0fe4178267544bb0a0834267598 (diff) | |
perf(engine): optimize wavefront obj parsing
Diffstat (limited to 'engine/src/util.rs')
| -rw-r--r-- | engine/src/util.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/engine/src/util.rs b/engine/src/util.rs index 84ce726..e845340 100644 --- a/engine/src/util.rs +++ b/engine/src/util.rs @@ -437,19 +437,6 @@ impl<'a, const BITS_PER_ITEM: usize> BitArrayItemMut<'a, BITS_PER_ITEM> } } -macro_rules! try_option { - ($expr: expr) => { - match $expr { - Ok(value) => value, - Err(err) => { - return Some(Err(err.into())); - } - } - }; -} - -pub(crate) use try_option; - macro_rules! or { (($($tt: tt)+) else ($($else_tt: tt)*)) => { $($tt)+ |
