From 8374dfe20a1f161e6cd543357ca88e48746ef5a7 Mon Sep 17 00:00:00 2001 From: Erin Date: Sun, 7 Jan 2024 00:34:28 +0100 Subject: [PATCH] Changed macro param --- hbbytecode/src/lib.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hbbytecode/src/lib.rs b/hbbytecode/src/lib.rs index 80960a0..806e3f9 100644 --- a/hbbytecode/src/lib.rs +++ b/hbbytecode/src/lib.rs @@ -77,11 +77,11 @@ unsafe impl BytecodeItem for u8 {} /// | D | 8 | Immediate | /// ``` #[macro_export] - macro_rules! invoke_with_def { - ($macro:path) => { - $macro! { $spec } - }; - } + macro_rules! invoke_with_def { + ($($macro:tt)*) => { + $($macro)*! { $spec } + }; + } } }