do { \
if (!(expr)) { \
FLTEST_UNIQUE(ss_) << msg; \
ar.mExpression = #expr; \
fl::test::TestContext::instance().reportAssert(ar); \
} else { \
ar.mExpression = #expr; \
fl::test::TestContext::instance().reportAssert(ar); \
} \
} while (0)
971#define FL_CHECK_MESSAGE(expr, msg) \
972 do { \
973 if (!(expr)) { \
974 fl::sstream FLTEST_UNIQUE(ss_); \
975 FLTEST_UNIQUE(ss_) << msg; \
976 fl::test::AssertResult ar(false); \
977 ar.mExpression = #expr; \
978 ar.mExpanded = FLTEST_UNIQUE(ss_).str(); \
979 ar.mLocation = fl::test::SourceLocation(__FILE__, __LINE__); \
980 fl::test::TestContext::instance().reportAssert(ar); \
981 } else { \
982 fl::test::AssertResult ar(true); \
983 ar.mExpression = #expr; \
984 ar.mLocation = fl::test::SourceLocation(__FILE__, __LINE__); \
985 fl::test::TestContext::instance().reportAssert(ar); \
986 } \
987 } while (0)