* @brief This function will judge the object is system object or not. * * @note Normally, the system object is a static object and the type * of object set to RT_Object_Class_Static. * * @param object The specified object to be judged. * * @return RT_TRUE if a system object, RT_FALSE for others. */
| 595 | * @return RT_TRUE if a system object, RT_FALSE for others. |
| 596 | */ |
| 597 | rt_bool_t rt_object_is_systemobject(rt_object_t object) |
| 598 | { |
| 599 | /* object check */ |
| 600 | RT_ASSERT(object != RT_NULL); |
| 601 | |
| 602 | if (object->type & RT_Object_Class_Static) |
| 603 | return RT_TRUE; |
| 604 | |
| 605 | return RT_FALSE; |
| 606 | } |
| 607 | |
| 608 | /** |
| 609 | * @brief This function will return the type of object without |
no outgoing calls