diff options
author | Nathan Ringo <nathan@remexre.com> | 2024-09-15 03:25:30 -0500 |
---|---|---|
committer | Nathan Ringo <nathan@remexre.com> | 2024-09-15 03:25:30 -0500 |
commit | 49bf92a7aaf10a4777ea512303e442588f4ce2e5 (patch) | |
tree | 2ad6e4baf4ea0c2e728a5c103139da520e32f378 /crates/utils | |
parent | fc918ea68d536fa9f219e7b4decdae1f561c9886 (diff) |
Start of serious allocator work.
Diffstat (limited to 'crates/utils')
-rw-r--r-- | crates/utils/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/utils/src/lib.rs b/crates/utils/src/lib.rs index 1e8ddfb..2181046 100644 --- a/crates/utils/src/lib.rs +++ b/crates/utils/src/lib.rs @@ -134,10 +134,10 @@ impl_FromEndianBytes!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize); /// Runs the body block the first time it is encountered. #[macro_export] macro_rules! first_time { - ($($stmt:stmt)*) => {{ + ($($stmt:stmt;)*) => {{ use spin::lazy::Lazy; static LAZY: Lazy<()> = Lazy::new(|| { - $($stmt)* + $($stmt;)* }); *Lazy::force(&LAZY) }}; |