Commit 3e2735f4 authored by Edward Hervey's avatar Edward Hervey Committed by Edward Hervey

gtype: Fast-path for g_type_is_a

Do I really need to explain why ?
parent 4b5bdf6c
......@@ -3499,6 +3499,9 @@ g_type_is_a (GType type,
TypeNode *node, *iface_node;
gboolean is_a;
if (type == iface_type)
return TRUE;
node = lookup_type_node_I (type);
iface_node = lookup_type_node_I (iface_type);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment