Macro variadic_generics::va_invoke_more[][src]

macro_rules! va_invoke_more {
    ($mac : ident $($cur_args : tt) *) => { ... };
}
Expand description

Like va_invoke, but with lists of up to 32 elements.

va_invoke_more!(mymacro arg1 arg2);

will be expanded to

mymacro!(arg1 arg2 (1) (_Va0) (0));
mymacro!(arg1 arg2 (2) (_Va0, _Va1) (0, 1));
mymacro!(arg1 arg2 (3) (_Va0, _Va1, _Va2) (0, 1, 2));
// ...
mymacro!(arg1 arg2 (32) (_Va0, ..., _Va31) (0, ..., 31));

Be aware this will significally worsen your compilation times.