wrap multiple statements in do {} while(!IsConstTrue(true)) (#5655)

This commit is contained in:
FujiZ 2019-12-14 02:14:14 +08:00 committed by Wouter van Oortmerssen
parent f9724d1bde
commit 030fee36ab
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@
#define FLATBUFFERS_NO_FILE_TESTS #define FLATBUFFERS_NO_FILE_TESTS
#else #else
#define TEST_OUTPUT_LINE(...) \ #define TEST_OUTPUT_LINE(...) \
{ printf(__VA_ARGS__); printf("\n"); } do { printf(__VA_ARGS__); printf("\n"); } while(!IsConstTrue(true))
#endif #endif
#define TEST_EQ(exp, val) TestEq(exp, val, "'" #exp "' != '" #val "'", __FILE__, __LINE__, "") #define TEST_EQ(exp, val) TestEq(exp, val, "'" #exp "' != '" #val "'", __FILE__, __LINE__, "")