added (GTypeFlags) cast needed by C++.

Fri Feb 20 02:44:54 2004  Tim Janik  <timj@gtk.org>

        * gtype.h (G_DEFINE_TYPE_EXTENDED): added (GTypeFlags) cast needed by C++.
This commit is contained in:
Tim Janik 2004-02-20 01:47:26 +00:00 committed by Tim Janik
parent defca980e4
commit b183ffc5ed
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Fri Feb 20 02:44:54 2004 Tim Janik <timj@gtk.org>
* gtype.h (G_DEFINE_TYPE_EXTENDED): added (GTypeFlags) cast needed by C++.
Tue Feb 3 21:24:01 2004 Tim Janik <timj@gtk.org>
* gtype.h (_G_TYPE_CVH): provide a short-cut version for

View File

@ -373,7 +373,7 @@ type_name##_get_type (void) \
0, /* n_preallocs */ \
(GInstanceInitFunc) type_name##_init, \
}; \
g_define_type_id = g_type_register_static (TYPE_PARENT, #TypeName, &g_define_type_info, flags); \
g_define_type_id = g_type_register_static (TYPE_PARENT, #TypeName, &g_define_type_info, (GTypeFlags) flags); \
{ CODE ; } \
} \
return g_define_type_id; \