diff options
Diffstat (limited to 'girepository/gitypeinfo.h')
-rw-r--r-- | girepository/gitypeinfo.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/girepository/gitypeinfo.h b/girepository/gitypeinfo.h index fd7d5be6..69d0dad6 100644 --- a/girepository/gitypeinfo.h +++ b/girepository/gitypeinfo.h @@ -48,6 +48,16 @@ G_BEGIN_DECLS */ #define G_TYPE_TAG_IS_BASIC(tag) (tag < GI_TYPE_TAG_ARRAY || tag == GI_TYPE_TAG_UNICHAR) +/** + * GI_TYPE_TAG_IS_NUMERIC: + * @tag: a type tag + * + * Checks if @tag is a numeric type. That is, integer or floating point. + * + * Since: 1.72 + */ +#define GI_TYPE_TAG_IS_NUMERIC(tag) ((tag) >= GI_TYPE_TAG_INT8 && (tag) <= GI_TYPE_TAG_DOUBLE) + GI_AVAILABLE_IN_ALL const gchar* g_type_tag_to_string (GITypeTag type); |