diff --git a/tests/pp_va_args.qc b/tests/pp_va_args.qc index 6e4002c..89a98c8 100644 --- a/tests/pp_va_args.qc +++ b/tests/pp_va_args.qc @@ -13,9 +13,12 @@ void print(...) = #1; // method 3 #define METHOD_3(F,...) F __VA_ARGS__ +// selector +#define METHOD(I, F, ...) METHOD_##I (F, __VA_ARGS__) + void main() { - METHOD_0(print, ("Method", " \n")); - METHOD_1(print, ("Method", " \n")); - METHOD_2(print, ("Method", " \n")); - METHOD_3(print, ("Method", " \n")); + METHOD(0, print, ("Method", " \n")); + METHOD(1, print, ("Method", " \n")); + METHOD(2, print, ("Method", " \n")); + METHOD(3, print, ("Method", " \n")); }