On Wed, Nov 6, 2013 at 9:05 AM, "Andrés G. Aragoneses" <kno...@gmail.com>wrote:
> > Hello, > > According to GObjectIntrospection wiki page[1], this is the proper place > to ask questions about GI. > > I'm wondering if the function g_field_info_get_offset() [2] could provide > the same information at compile-time that the G_STRUCT_OFFSET macro [3] > provides at run-time? Am I missing something obvious here? > You've got these backwards. G_STRUCT_OFFSET is a compile-time macro, while g_field_info_get_offset() is a runtime method using the GIR/typelib data. But yes, they should provide the same values. What's the issue here? > Thanks > > [1] https://wiki.gnome.org/GObjectIntrospection > [2] https://developer.gnome.org/gi/stable/gi-GIFieldInfo.html# > g-field-info-get-offset > [3] https://developer.gnome.org/glib/2.37/glib-Standard- > Macros.html#G-STRUCT-OFFSET:CAPS > > _______________________________________________ > gtk-devel-list mailing list > gtk-devel-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtk-devel-list > -- Jasper
_______________________________________________ gtk-devel-list mailing list gtk-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-devel-list