diff options
author | Brad King <brad.king@kitware.com> | 2014-05-20 13:40:14 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2014-05-20 13:40:14 (GMT) |
commit | c1edede31f4e979826a5fc0f6e56b1b59cb00f21 (patch) | |
tree | 11ca8f038a7e363ebd7b218d5cf753fae4b1cd4d /Tests/CompileFeatures/c_variadic_macros.c | |
parent | 8897116df8e8a6576f2736b96b8e0d529c26139e (diff) | |
parent | e0890d03a48d12904ffe24aa94fb2847d8d5f4e7 (diff) | |
download | CMake-c1edede31f4e979826a5fc0f6e56b1b59cb00f21.zip CMake-c1edede31f4e979826a5fc0f6e56b1b59cb00f21.tar.gz CMake-c1edede31f4e979826a5fc0f6e56b1b59cb00f21.tar.bz2 |
Merge topic 'compile-features-C-language'
e0890d03 Features: Extend concept to C language.
Diffstat (limited to 'Tests/CompileFeatures/c_variadic_macros.c')
-rw-r--r-- | Tests/CompileFeatures/c_variadic_macros.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Tests/CompileFeatures/c_variadic_macros.c b/Tests/CompileFeatures/c_variadic_macros.c new file mode 100644 index 0000000..4da111e --- /dev/null +++ b/Tests/CompileFeatures/c_variadic_macros.c @@ -0,0 +1,15 @@ + +int someFunc(int i1, char c, int i2) +{ + (void)i1; + (void)c; + (void)i2; + return 0; +} + +#define FUNC_WRAPPER(...) someFunc(__VA_ARGS__) + +void otherFunc() +{ + FUNC_WRAPPER(42, 'a', 7); +} |