mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01: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:
parent
3b346e3581
commit
52479107a6
@ -1,3 +1,8 @@
|
|||||||
|
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().
|
||||||
|
|
||||||
Mon Jun 11 17:07:06 2001 Tim Janik <timj@gtk.org>
|
Mon Jun 11 17:07:06 2001 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gboxed.[hc]: remove left-over usages of an anonymous GBoxed typedef.
|
* gboxed.[hc]: remove left-over usages of an anonymous GBoxed typedef.
|
||||||
|
@ -2737,6 +2737,24 @@ g_type_value_table_peek (GType type)
|
|||||||
return vtable;
|
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 --- */
|
/* --- foreign prototypes --- */
|
||||||
extern void g_value_types_init (void); /* sync with gvaluetypes.c */
|
extern void g_value_types_init (void); /* sync with gvaluetypes.c */
|
||||||
|
@ -350,6 +350,11 @@ gboolean g_type_check_value_holds (GValue *value,
|
|||||||
GTypeValueTable* g_type_value_table_peek (GType type);
|
GTypeValueTable* g_type_value_table_peek (GType type);
|
||||||
|
|
||||||
|
|
||||||
|
/* --- debugging functions --- */
|
||||||
|
G_CONST_RETURN gchar* g_type_name_from_instance (GTypeInstance *instance);
|
||||||
|
G_CONST_RETURN gchar* g_type_name_from_class (GTypeClass *g_class);
|
||||||
|
|
||||||
|
|
||||||
/* --- implementation bits --- */
|
/* --- implementation bits --- */
|
||||||
#ifndef G_DISABLE_CAST_CHECKS
|
#ifndef G_DISABLE_CAST_CHECKS
|
||||||
# define _G_TYPE_CIC(ip, gt, ct) \
|
# define _G_TYPE_CIC(ip, gt, ct) \
|
||||||
|
Loading…
Reference in New Issue
Block a user