macro_rules! count {
    ($f:ident ($($x:tt)*) ) => { ... };
    ($f:ident ($($x:tt)*) $x1:tt) => { ... };
    ($f:ident ($($x:tt)*) $x1:tt, $x2:tt) => { ... };
    ($f:ident ($($x:tt)*) $x1:tt, $x2:tt, $x3:tt) => { ... };
    ($f:ident ($($x:tt)*) $x1:tt, $x2:tt, $x3:tt, $x4:tt) => { ... };
    ($f:ident ($($x:tt)*) $x1:tt, $x2:tt, $x3:tt, $x4:tt, $x5:tt) => { ... };
}
Expand description

Calls a given macro a number of times with a set of fixed params and an incrementing numeral. e.g.

count!(println ("{}",) foo, bar, baz);
// Will result in three `println!`s: "0", "1" and "2".