FastLED 3.9.15
Loading...
Searching...
No Matches

◆ FL_CHECK_MESSAGE

#define FL_CHECK_MESSAGE ( expr,
msg )
Value:
do { \
if (!(expr)) { \
FLTEST_UNIQUE(ss_) << msg; \
ar.mExpression = #expr; \
ar.mExpanded = FLTEST_UNIQUE(ss_).str(); \
ar.mLocation = fl::test::SourceLocation(__FILE__, __LINE__); \
fl::test::TestContext::instance().reportAssert(ar); \
} else { \
ar.mExpression = #expr; \
ar.mLocation = fl::test::SourceLocation(__FILE__, __LINE__); \
fl::test::TestContext::instance().reportAssert(ar); \
} \
} while (0)
#define FLTEST_UNIQUE(x)
Definition fltest.h:709

Definition at line 971 of file fltest.h.

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)