do { \
if (!(expr)) { \
FLTEST_UNIQUE(ss_) << msg; \
ar.mExpression = #expr; \
fl::test::TestContext::instance().reportAssert(ar); \
return; \
} else { \
ar.mExpression = #expr; \
fl::test::TestContext::instance().reportAssert(ar); \
} \
} while (0)
989#define FL_REQUIRE_MESSAGE(expr, msg) \
990 do { \
991 if (!(expr)) { \
992 fl::sstream FLTEST_UNIQUE(ss_); \
993 FLTEST_UNIQUE(ss_) << msg; \
994 fl::test::AssertResult ar(false); \
995 ar.mExpression = #expr; \
996 ar.mExpanded = FLTEST_UNIQUE(ss_).str(); \
997 ar.mLocation = fl::test::SourceLocation(__FILE__, __LINE__); \
998 fl::test::TestContext::instance().reportAssert(ar); \
999 return; \
1000 } else { \
1001 fl::test::AssertResult ar(true); \
1002 ar.mExpression = #expr; \
1003 ar.mLocation = fl::test::SourceLocation(__FILE__, __LINE__); \
1004 fl::test::TestContext::instance().reportAssert(ar); \
1005 } \
1006 } while (0)