mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
[girepository] Correct GI_IS_ENUM_INFO macro
A GIEnumInfo represents either an enum or a set of flags
This commit is contained in:
parent
58ac4f880a
commit
7a383b6126
@ -786,7 +786,8 @@ GType g_registered_type_info_get_g_type (GIRegisteredTypeInf
|
||||
/* GIEnumInfo */
|
||||
|
||||
#define GI_IS_ENUM_INFO(info) \
|
||||
(g_base_info_get_type((GIBaseInfo*)info) == GI_INFO_TYPE_ENUM)
|
||||
((g_base_info_get_type((GIBaseInfo*)info) == GI_INFO_TYPE_ENUM) || \
|
||||
(g_base_info_get_type((GIBaseInfo*)info) == GI_INFO_TYPE_FLAGS))
|
||||
|
||||
gint g_enum_info_get_n_values (GIEnumInfo *info);
|
||||
GIValueInfo * g_enum_info_get_value (GIEnumInfo *info,
|
||||
|
Loading…
Reference in New Issue
Block a user