mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 21:26:50 +00:00
Fix and extend the apply! util macro.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
1 parent
7221d466ce
commit
a164da8b58
1 file changed
+5
-1
@@ -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),)
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user