From 244b903e5def3cd4aefc4bf2ebdc4687826e2f4d Mon Sep 17 00:00:00 2001 From: "Man, Jianting (Meco)" <920369182@qq.com> Date: Fri, 21 Jul 2023 22:36:42 -0400 Subject: [debug] 整理debug宏并增加RT_DEBUGING_CONTEXT (#7805) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/object.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/object.c') diff --git a/src/object.c b/src/object.c index d1815f7e23..afcd4d8509 100644 --- a/src/object.c +++ b/src/object.c @@ -353,7 +353,7 @@ void rt_object_init(struct rt_object *object, const char *name) { rt_base_t level; -#ifdef RT_DEBUG +#ifdef RT_USING_DEBUG struct rt_list_node *node = RT_NULL; #endif struct rt_object_information *information; @@ -365,7 +365,7 @@ void rt_object_init(struct rt_object *object, information = rt_object_get_information(type); RT_ASSERT(information != RT_NULL); -#ifdef RT_DEBUG +#ifdef RT_USING_DEBUG /* check object type to avoid re-initialization */ /* enter critical */ -- cgit v1.3.1