aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/va_args.cpp
blob: 2266d05a0dd4f5e1b929c6b656757c135fd1e292 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "va_args.h"

// Test that it compiles
#define __DUMMY__(x)
Y_MAP_ARGS(__DUMMY__, 1, 2, 3);
#define __DUMMY_LAST__(x)
Y_MAP_ARGS_WITH_LAST(__DUMMY__, __DUMMY_LAST__, 1, 2, 3);
#undef __DUMMY_LAST__
#undef __DUMMY__

#define __MULTI_DUMMY__(x, y)
#define __MULTI_DUMMY_PROXY__(x) __MULTI_DUMMY__ x
Y_MAP_ARGS(__MULTI_DUMMY_PROXY__, (1, 2), (3, 4));
#undef __MULTI_DUMMY_PROXY__
#undef __MULTI_DUMMY__