diff options
Diffstat (limited to 'girepository/gitypeinfo.h')
-rw-r--r-- | girepository/gitypeinfo.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/girepository/gitypeinfo.h b/girepository/gitypeinfo.h index 69d0dad6..a8674fd9 100644 --- a/girepository/gitypeinfo.h +++ b/girepository/gitypeinfo.h @@ -58,6 +58,18 @@ G_BEGIN_DECLS */ #define GI_TYPE_TAG_IS_NUMERIC(tag) ((tag) >= GI_TYPE_TAG_INT8 && (tag) <= GI_TYPE_TAG_DOUBLE) +/** + * GI_TYPE_TAG_IS_CONTAINER: + * @tag: a type tag + * + * Checks if @tag is a container type. That is, a type which may have a nonnull + * return from g_type_info_get_param_type(). + * + * Since: 1.72 + */ + #define GI_TYPE_TAG_IS_CONTAINER(tag) ((tag) == GI_TYPE_TAG_ARRAY || \ + ((tag) >= GI_TYPE_TAG_GLIST && (tag) <= GI_TYPE_TAG_GHASH)) + GI_AVAILABLE_IN_ALL const gchar* g_type_tag_to_string (GITypeTag type); |