From a164da8b584b76e42338422077af5d9b016eba6f Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 3 Sep 2025 21:28:13 +0000 Subject: [PATCH] Fix and extend the apply! util macro. Signed-off-by: Jason Volk --- src/core/utils/mod.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/utils/mod.rs b/src/core/utils/mod.rs index 6219aac9..f9724534 100644 --- a/src/core/utils/mod.rs +++ b/src/core/utils/mod.rs @@ -81,7 +81,11 @@ macro_rules! apply { }; (4, $($idx:tt)+) => { - |t| (($($idx)+)(t.0), ($($idx)+)(t.1), ($($idx)+)(t.2), ($($idx)+4)(t.3)) + |t| (($($idx)+)(t.0), ($($idx)+)(t.1), ($($idx)+)(t.2), ($($idx)+)(t.3),) + }; + + (5, $($idx:tt)+) => { + |t| (($($idx)+)(t.0), ($($idx)+)(t.1), ($($idx)+)(t.2), ($($idx)+)(t.3), ($($idx)+)(t.4),) }; }