patch from sven to fixup G_ENUM_CLASS_TYPE() macro.

Sat Feb 17 07:58:46 2001  Tim Janik  <timj@gtk.org>

        * genums.h (G_TYPE_IS_FLAGS): patch from sven to fixup
        G_ENUM_CLASS_TYPE() macro.
This commit is contained in:
Tim Janik 2001-02-17 07:00:16 +00:00 committed by Tim Janik
parent d28267f124
commit 9c830a7da5
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Sat Feb 17 07:58:46 2001 Tim Janik <timj@gtk.org>
* genums.h (G_TYPE_IS_FLAGS): patch from sven to fixup
G_ENUM_CLASS_TYPE() macro.
Sat Feb 17 04:55:35 2001 Tim Janik <timj@gtk.org>
* gtype.[hc]: changed collect_format, collect_value() and lcopy_format,

View File

@ -32,7 +32,7 @@ extern "C" {
#define G_ENUM_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), G_TYPE_ENUM, GEnumClass))
#define G_IS_ENUM_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), G_TYPE_ENUM))
#define G_ENUM_CLASS_TYPE(class) (G_TYPE_FROM_CLASS (class))
#define G_ENUM_CLASS_TYPE_NAME(class) (g_type_name (G_ENUM_TYPE (class)))
#define G_ENUM_CLASS_TYPE_NAME(class) (g_type_name (G_ENUM_CLASS_TYPE (class)))
#define G_TYPE_IS_FLAGS(type) (G_TYPE_FUNDAMENTAL (type) == G_TYPE_FLAGS)
#define G_FLAGS_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), G_TYPE_FLAGS, GFlagsClass))
#define G_IS_FLAGS_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), G_TYPE_FLAGS))