Fix and extend the apply! util macro.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -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