mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-29 04:14:11 +02:00
added debugging variants g_type_name_from_class(),
Wed Jun 20 03:59:42 2001 Tim Janik <timj@gtk.org> * gtype.[hc]: added debugging variants g_type_name_from_class(), g_type_name_from_instance().
This commit is contained in:
@@ -2737,6 +2737,24 @@ g_type_value_table_peek (GType type)
|
||||
return vtable;
|
||||
}
|
||||
|
||||
G_CONST_RETURN gchar*
|
||||
g_type_name_from_instance (GTypeInstance *instance)
|
||||
{
|
||||
if (!instance)
|
||||
return "<NULL-instance>";
|
||||
else
|
||||
return g_type_name_from_class (instance->g_class);
|
||||
}
|
||||
|
||||
G_CONST_RETURN gchar*
|
||||
g_type_name_from_class (GTypeClass *g_class)
|
||||
{
|
||||
if (!g_class)
|
||||
return "<NULL-class>";
|
||||
else
|
||||
return g_type_name (g_class->g_type);
|
||||
}
|
||||
|
||||
|
||||
/* --- foreign prototypes --- */
|
||||
extern void g_value_types_init (void); /* sync with gvaluetypes.c */
|
||||
|
Reference in New Issue
Block a user