mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-23 04:04:15 +08:00
change the return type of function rt_object_is_systemobject()
using rt_bool_t instead of rt_err_t git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2150 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
+4
-4
@@ -356,17 +356,17 @@ void rt_object_delete(rt_object_t object)
|
||||
*
|
||||
* @param object the specified object to be judged.
|
||||
*
|
||||
* @return RT_EOK if a system object, RT_ERROR for others.
|
||||
* @return RT_TRUE if a system object, RT_FALSE for others.
|
||||
*/
|
||||
rt_err_t rt_object_is_systemobject(rt_object_t object)
|
||||
rt_bool_t rt_object_is_systemobject(rt_object_t object)
|
||||
{
|
||||
/* object check */
|
||||
RT_ASSERT(object != RT_NULL);
|
||||
|
||||
if (object->type & RT_Object_Class_Static)
|
||||
return RT_EOK;
|
||||
return RT_TRUE;
|
||||
|
||||
return -RT_ERROR;
|
||||
return RT_FALSE;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user