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

◆ FL_CHECK_FALSE

#define FL_CHECK_FALSE ( expr)
Value:
do { \
if (expr) { \
fl::test::TestContext::instance().checkFailed("!(" #expr ")", __FILE__, __LINE__); \
} else { \
ar.mExpression = "!(" #expr ")"; \
ar.mLocation = fl::test::SourceLocation(__FILE__, __LINE__); \
fl::test::TestContext::instance().reportAssert(ar); \
} \
} while (0)

Definition at line 737 of file fltest.h.

737#define FL_CHECK_FALSE(expr) \
738 do { \
739 if (expr) { \
740 fl::test::TestContext::instance().checkFailed("!(" #expr ")", __FILE__, __LINE__); \
741 } else { \
742 fl::test::AssertResult ar(true); \
743 ar.mExpression = "!(" #expr ")"; \
744 ar.mLocation = fl::test::SourceLocation(__FILE__, __LINE__); \
745 fl::test::TestContext::instance().reportAssert(ar); \
746 } \
747 } while (0)