return test_atomic_type_flag(type->atomic.akind, ATOMIC_TYPE_FLAG_INTEGER);
}
+/**
+ * Returns true if the given type is an enum type.
+ *
+ * @param type The type to check.
+ * @return True if type is an enum type.
+ */
+bool is_type_enum(const type_t *type)
+{
+ assert(!is_typeref(type));
+ return type->kind == TYPE_ENUM;
+}
+
/**
* Returns true if the given type is an floating point type.
*
}
}
+/**
+ * Returns true if the given type is an integer or float type.
+ *
+ * @param type The type to check.
+ * @return True if type is an integer or float type.
+ */
bool is_type_real(const type_t *type)
{
/* 6.2.5.17 */
*/
bool is_type_integer(const type_t *type);
+/**
+ * Returns true if the given type is an enum type.
+ */
+bool is_type_enum(const type_t *type);
+
/**
* return true if type contains signed numbers
*/