From 65d2d4212450deb051d9e967cb92e66652cc75b5 Mon Sep 17 00:00:00 2001 From: Paul Vogel <48995417+pfvogel@users.noreply.github.com> Date: Thu, 21 Nov 2024 05:43:58 -0600 Subject: [PATCH] fix(obj): use LV_ASSERT_NULL if LV_ASSERT_OBJ not enabled (#7339) --- src/core/lv_obj.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/lv_obj.h b/src/core/lv_obj.h index 4ae648ffc..698748383 100644 --- a/src/core/lv_obj.h +++ b/src/core/lv_obj.h @@ -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