aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/va_args.cpp
blob: dd8c18ea6c1b530423a4af670ba43effe6c12b12 (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__