Re: Adding g_object_get_type?



Hi,

Darin Adler <darin bentspoon com> writes:

> For some kinds of programs that use macros to write code, it would be useful
> if there was a g_object_get_type function. Is there any compelling reason
> not to add it to glib?

because it's already there?

#define G_TYPE_FROM_INSTANCE(instance) (G_TYPE_FROM_CLASS (((GTypeInstance*) (instance))->g_class))

#define G_OBJECT_TYPE(object)          (G_TYPE_FROM_INSTANCE (object))


Salut, Sven



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]