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

◆ FL_CHECK

#define FL_CHECK ( 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 725 of file fltest.h.

725#define FL_CHECK(expr) \
726 do { \
727 if (!(expr)) { \
728 fl::test::TestContext::instance().checkFailed(#expr, __FILE__, __LINE__); \
729 } else { \
730 fl::test::AssertResult ar(true); \
731 ar.mExpression = #expr; \
732 ar.mLocation = fl::test::SourceLocation(__FILE__, __LINE__); \
733 fl::test::TestContext::instance().reportAssert(ar); \
734 } \
735 } while (0)