summaryrefslogtreecommitdiff
path: root/src/object.c
diff options
context:
space:
mode:
authorMan, Jianting (Meco) <[email protected]>2023-07-21 22:36:42 -0400
committerGitHub <[email protected]>2023-07-22 10:36:42 +0800
commit244b903e5def3cd4aefc4bf2ebdc4687826e2f4d (patch)
tree8bbed859a1b5c38a449b9e2c6a35d3026eeecaef /src/object.c
parent52d3637fba5e3e4048ba036803d6292f3e7a4a70 (diff)
[debug] 整理debug宏并增加RT_DEBUGING_CONTEXT (#7805)
Diffstat (limited to 'src/object.c')
-rw-r--r--src/object.c4
1 files changed, 2 insertions, 2 deletions
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 */