mirror of
https://github.com/lvgl/lvgl.git
synced 2024-11-23 01:33:59 +08:00
fix(obj): use LV_ASSERT_NULL if LV_ASSERT_OBJ not enabled (#7339)
This commit is contained in:
parent
a99f8cec56
commit
65d2d42124
@ -470,7 +470,7 @@ void lv_objid_builtin_destroy(void);
|
||||
LV_ASSERT_MSG(lv_obj_is_valid(obj_p) == true, "The object is invalid, deleted or corrupted?"); \
|
||||
} while(0)
|
||||
# else
|
||||
# define LV_ASSERT_OBJ(obj_p, obj_class) do{}while(0)
|
||||
# define LV_ASSERT_OBJ(obj_p, obj_class) LV_ASSERT_NULL(obj_p)
|
||||
#endif
|
||||
|
||||
#if LV_USE_LOG && LV_LOG_TRACE_OBJ_CREATE
|
||||
|
Loading…
Reference in New Issue
Block a user