fix(obj): use LV_ASSERT_NULL if LV_ASSERT_OBJ not enabled (#7339)

This commit is contained in:
Paul Vogel 2024-11-21 05:43:58 -06:00 committed by GitHub
parent a99f8cec56
commit 65d2d42124
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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