lv_assert.h
API reference for lv_assert.h
Summary
Macros
misc/lv_assert.h:37macro
LV_ASSERT
#define LV_ASSERT(expr) \
do { \
if(!(expr)) { \
LV_LOG_ERROR("Asserted at expression: %s", #expr); \
LV_ASSERT_HANDLER \
} \
} while(0)misc/lv_assert.h:45macro
LV_ASSERT_MSG
#define LV_ASSERT_MSG(expr, msg) \
do { \
if(!(expr)) { \
LV_LOG_ERROR("Asserted at expression: %s (%s)", #expr, msg); \
LV_ASSERT_HANDLER \
} \
} while(0)misc/lv_assert.h:53macro
LV_ASSERT_FORMAT_MSG
#define LV_ASSERT_FORMAT_MSG(expr, format, ...) \
do { \
if(!(expr)) { \
LV_LOG_ERROR("Asserted at expression: %s " format , #expr, __VA_ARGS__); \
LV_ASSERT_HANDLER \
} \
} while(0)misc/lv_assert.h:66macro
LV_ASSERT_NULL
#define LV_ASSERT_NULL(p) \
LV_ASSERT_MSG(p != NULL, "NULL pointer");misc/lv_assert.h:72macro
LV_ASSERT_MALLOC
#define LV_ASSERT_MALLOC(p) \
LV_ASSERT_MSG(p != NULL, "Out of memory");misc/lv_assert.h:78macro
LV_ASSERT_MEM_INTEGRITY
#define LV_ASSERT_MEM_INTEGRITY() \
LV_ASSERT_MSG(lv_mem_test() == LV_RESULT_OK, "Memory integrity error");Dependencies
How is this guide?
Last updated on