diff options
author | Shevek <[email protected]> | 2013-12-28 05:07:31 -0800 |
---|---|---|
committer | Shevek <[email protected]> | 2013-12-28 05:07:31 -0800 |
commit | 4193b7effd117c31c15452aa7beef48ee29d79c2 (patch) | |
tree | a8a9ae97e4064469f231914c0d69907a03ea5047 /src/test/resources | |
parent | efc10c0f0bc0e8c245282fc55d28adb2ce1967eb (diff) |
Implement varargs macros, courtesy ochafik
Diffstat (limited to 'src/test/resources')
-rw-r--r-- | src/test/resources/varargs.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/resources/varargs.c b/src/test/resources/varargs.c new file mode 100644 index 0000000..5eac2fa --- /dev/null +++ b/src/test/resources/varargs.c @@ -0,0 +1,8 @@ +#define var(x...) a x __VA_ARGS__ b +var(b, c, d) + +#define var2(x, ...) a x __VA_ARGS__ b +var2(b, c, d) + +#define var3(...) a x __VA_ARGS__ b +var3(b, c, d) |