From 030fee36abbfc61d5007b1a3d068d737de0080fc Mon Sep 17 00:00:00 2001 From: FujiZ Date: Sat, 14 Dec 2019 02:14:14 +0800 Subject: [PATCH] wrap multiple statements in do {} while(!IsConstTrue(true)) (#5655) --- tests/test_assert.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_assert.h b/tests/test_assert.h index b2d0562f8..353e3cee3 100644 --- a/tests/test_assert.h +++ b/tests/test_assert.h @@ -13,7 +13,7 @@ #define FLATBUFFERS_NO_FILE_TESTS #else #define TEST_OUTPUT_LINE(...) \ - { printf(__VA_ARGS__); printf("\n"); } + do { printf(__VA_ARGS__); printf("\n"); } while(!IsConstTrue(true)) #endif #define TEST_EQ(exp, val) TestEq(exp, val, "'" #exp "' != '" #val "'", __FILE__, __LINE__, "")