mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-04 20:59:21 +02:00
provide a short-cut version for this macro in case
Tue Feb 3 21:24:01 2004 Tim Janik <timj@gtk.org> * gtype.h (_G_TYPE_CVH): provide a short-cut version for this macro in case value->g_type==checked_type for gcc, similar to instance and class check short-cuts. this speeds up code that makes frequent use of G_VALUE_HOLDS_*() (e.g. setters/getters). * gtype.c (type_data_last_unref_Wm): don't call class-cache functions for the uncached case, this rendered g_type_class_unref_uncached() useless. pointed out by Stefan Westerfeld.
This commit is contained in:
@@ -2009,8 +2009,9 @@ type_data_last_unref_Wm (GType type,
|
||||
type_descriptive_name_I (type));
|
||||
return;
|
||||
}
|
||||
|
||||
if (node->is_classed && node->data && node->data->class.class && static_n_class_cache_funcs)
|
||||
|
||||
/* call class cache hooks */
|
||||
if (node->is_classed && node->data && node->data->class.class && static_n_class_cache_funcs && !uncached)
|
||||
{
|
||||
guint i;
|
||||
|
||||
|
Reference in New Issue
Block a user