summaryrefslogtreecommitdiff
path: root/src/object.c
diff options
context:
space:
mode:
authorguo <[email protected]>2021-06-13 09:39:52 +0800
committerGitHub <[email protected]>2021-06-13 09:39:52 +0800
commitb24447a60a6941568d58dd1ca358951674924ed2 (patch)
tree0176988db5538dc03ba69277a25bdceb2d42250d /src/object.c
parentb516cbd2ae6f2f111a1aa6a977f9a20bada6305d (diff)
parent4fa92ae3f6766863035238da9ae2b46622abb8a9 (diff)
Merge pull request #4785 from mysterywolf/endif
[kernel] 补充endif后缀注释
Diffstat (limited to 'src/object.c')
-rw-r--r--src/object.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/object.c b/src/object.c
index 013e2d1e33..ff96037c52 100644
--- a/src/object.c
+++ b/src/object.c
@@ -20,7 +20,7 @@
#ifdef RT_USING_MODULE
#include <dlmodule.h>
-#endif
+#endif /* RT_USING_MODULE */
/*
* define object_info for the number of rt_object_container items.
@@ -189,7 +189,7 @@ void rt_object_put_sethook(void (*hook)(struct rt_object *object))
}
/**@}*/
-#endif
+#endif /* RT_USING_HOOK */
/**
* @addtogroup KernelObject
@@ -305,7 +305,7 @@ void rt_object_init(struct rt_object *object,
struct rt_object_information *information;
#ifdef RT_USING_MODULE
struct rt_dlmodule *module = dlmodule_self();
-#endif
+#endif /* RT_USING_MODULE */
/* get object information */
information = rt_object_get_information(type);
@@ -349,7 +349,7 @@ void rt_object_init(struct rt_object *object,
object->module_id = (void *)module;
}
else
-#endif
+#endif /* RT_USING_MODULE */
{
/* insert object into information object list */
rt_list_insert_after(&(information->object_list), &(object->list));
@@ -403,7 +403,7 @@ rt_object_t rt_object_allocate(enum rt_object_class_type type, const char *name)
struct rt_object_information *information;
#ifdef RT_USING_MODULE
struct rt_dlmodule *module = dlmodule_self();
-#endif
+#endif /* RT_USING_MODULE */
RT_DEBUG_NOT_IN_INTERRUPT;
@@ -444,7 +444,7 @@ rt_object_t rt_object_allocate(enum rt_object_class_type type, const char *name)
object->module_id = (void *)module;
}
else
-#endif
+#endif /* RT_USING_MODULE */
{
/* insert object into information object list */
rt_list_insert_after(&(information->object_list), &(object->list));
@@ -487,7 +487,7 @@ void rt_object_delete(rt_object_t object)
/* free the memory of object */
RT_KERNEL_FREE(object);
}
-#endif
+#endif /* RT_USING_HEAP */
/**
* This function will judge the object is system object or not.