This makes GCC mask the "unused function" warning.
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
* @param object Object to check
* @returns \c true if \p object is a null object
*/
* @param object Object to check
* @returns \c true if \p object is a null object
*/
-static bool bt_object_is_null(const struct bt_object *object)
+static inline
+bool bt_object_is_null(const struct bt_object *object)
{
return bt_object_get_type(object) == BT_OBJECT_TYPE_NULL;
}
{
return bt_object_get_type(object) == BT_OBJECT_TYPE_NULL;
}
* @param object Object to check
* @returns \c true if \p object is a boolean object
*/
* @param object Object to check
* @returns \c true if \p object is a boolean object
*/
-static bool bt_object_is_bool(const struct bt_object *object)
+static inline
+bool bt_object_is_bool(const struct bt_object *object)
{
return bt_object_get_type(object) == BT_OBJECT_TYPE_BOOL;
}
{
return bt_object_get_type(object) == BT_OBJECT_TYPE_BOOL;
}
* @param object Object to check
* @returns \c true if \p object is an integer object
*/
* @param object Object to check
* @returns \c true if \p object is an integer object
*/
-static bool bt_object_is_integer(const struct bt_object *object)
+static inline
+bool bt_object_is_integer(const struct bt_object *object)
{
return bt_object_get_type(object) == BT_OBJECT_TYPE_INTEGER;
}
{
return bt_object_get_type(object) == BT_OBJECT_TYPE_INTEGER;
}
* @param object Object to check
* @returns \c true if \p object is a floating point number object
*/
* @param object Object to check
* @returns \c true if \p object is a floating point number object
*/
-static bool bt_object_is_float(const struct bt_object *object)
+static inline
+bool bt_object_is_float(const struct bt_object *object)
{
return bt_object_get_type(object) == BT_OBJECT_TYPE_FLOAT;
}
{
return bt_object_get_type(object) == BT_OBJECT_TYPE_FLOAT;
}
* @param object Object to check
* @returns \c true if \p object is a string object
*/
* @param object Object to check
* @returns \c true if \p object is a string object
*/
-static bool bt_object_is_string(const struct bt_object *object)
+static inline
+bool bt_object_is_string(const struct bt_object *object)
{
return bt_object_get_type(object) == BT_OBJECT_TYPE_STRING;
}
{
return bt_object_get_type(object) == BT_OBJECT_TYPE_STRING;
}
* @param object Object to check
* @returns \c true if \p object is an array object
*/
* @param object Object to check
* @returns \c true if \p object is an array object
*/
-static bool bt_object_is_array(const struct bt_object *object)
+static inline
+bool bt_object_is_array(const struct bt_object *object)
{
return bt_object_get_type(object) == BT_OBJECT_TYPE_ARRAY;
}
{
return bt_object_get_type(object) == BT_OBJECT_TYPE_ARRAY;
}
* @param object Object to check
* @returns \c true if \p object is a map object
*/
* @param object Object to check
* @returns \c true if \p object is a map object
*/
-static bool bt_object_is_map(const struct bt_object *object)
+static inline
+bool bt_object_is_map(const struct bt_object *object)
{
return bt_object_get_type(object) == BT_OBJECT_TYPE_MAP;
}
{
return bt_object_get_type(object) == BT_OBJECT_TYPE_MAP;
}