Consistent furi_assert usage across project. (#392)

This commit is contained in:
あく
2021-03-31 21:05:00 +03:00
committed by GitHub
parent 81ace53cc1
commit 6fb6e8bd3f
9 changed files with 31 additions and 31 deletions

View File

@@ -28,14 +28,12 @@ extern "C" {
// We have two levels of assertion
// One - furi_check, which always runs, the only difference is in the level of debug information
// The second is furi_assert, which doesn't compile in release mode
#ifdef NDEBUG
#define furi_check(__e) ((__e) ? (void)0 : __furi_check())
#ifdef NDEBUG
#define furi_assert(__e) ((void)0)
#else
#define furi_check(__e) \
((__e) ? (void)0 : __furi_check_debug(__FILE__, __LINE__, __FURI_CHECK_FUNC, #__e))
#define furi_assert(__e) \
((__e) ? (void)0 : __furi_check_debug(__FILE__, __LINE__, __FURI_CHECK_FUNC, #__e))
#define furi_assert(__e) ((__e) ? (void)0 : __furi_check())
#endif
// !NDEBUG