diff options
author | Jose Fonseca <jfonseca@vmware.com> | 2015-02-18 12:57:13 +0000 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2015-02-18 13:11:10 +0000 |
commit | 83bc6862386b2d465879bcd372d61ec754534970 (patch) | |
tree | 07b46cc5dbd08038786d6dbc37ecc11f16bad774 | |
parent | c08558659f7967410ab68f39c3d768e41e35bc6d (diff) |
arb_direct_state_access: Use the standard C99 syntax for variadic macros.
Instead of the non-portable GNU syntax, as described in
https://gcc.gnu.org/onlinedocs/cpp/Variadic-Macros.html
Fixes MSVC build.
Trivial.
-rw-r--r-- | tests/spec/arb_direct_state_access/dsa-utils.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/spec/arb_direct_state_access/dsa-utils.h b/tests/spec/arb_direct_state_access/dsa-utils.h index 25b552402..7bcf0047b 100644 --- a/tests/spec/arb_direct_state_access/dsa-utils.h +++ b/tests/spec/arb_direct_state_access/dsa-utils.h @@ -39,20 +39,20 @@ extern "C" { #include "piglit-util-gl.h" -#define SUBTEST(error, global, format, args...) \ +#define SUBTEST(error, global, ...) \ do { \ bool local = piglit_check_gl_error((error)); \ global = global && local; \ piglit_report_subtest_result(local ? PIGLIT_PASS : PIGLIT_FAIL, \ - (format), ##args); \ + __VA_ARGS__); \ } while (0) -#define SUBTESTCONDITION(condition, global, format, args...) \ +#define SUBTESTCONDITION(condition, global, ...) \ do { \ bool cond = (condition); \ global = global && cond; \ piglit_report_subtest_result(cond ? PIGLIT_PASS : PIGLIT_FAIL, \ - (format), ##args); \ + __VA_ARGS__); \ } while (0) void dsa_init_program(void); |