Macro feo3boy_opcodes::count_repetition
source · macro_rules! count_repetition { () => { ... }; ($($rep:tt),* $(,)?) => { ... }; (@__replace $v:tt) => { ... }; }
Expand description
Counts the number of repetitions in a macro invocation. Produces a constant expression.
Usage:
count_repetition!(a, 3, (), {}, 4, foo);