|
@@ -418,6 +418,22 @@ rt_bool_t rt_object_is_systemobject(rt_object_t object)
|
|
|
return RT_FALSE;
|
|
|
}
|
|
|
|
|
|
+/**
|
|
|
+ * This function will return the type of object without
|
|
|
+ * RT_Object_Class_Static flag.
|
|
|
+ *
|
|
|
+ * @param object the specified object to be get type.
|
|
|
+ *
|
|
|
+ * @return the type of object.
|
|
|
+ */
|
|
|
+rt_uint8_t rt_object_get_type(rt_object_t object)
|
|
|
+{
|
|
|
+ /* object check */
|
|
|
+ RT_ASSERT(object != RT_NULL);
|
|
|
+
|
|
|
+ return object->type & ~RT_Object_Class_Static;
|
|
|
+}
|
|
|
+
|
|
|
/**
|
|
|
* This function will find specified name object from object
|
|
|
* container.
|