gtk.cfg: Added support for more macros.

This commit is contained in:
orbitcowboy 2019-03-04 10:43:21 +01:00
parent f723c6b191
commit 391ed97717
1 changed files with 3 additions and 1 deletions

View File

@ -11,6 +11,8 @@
<define name="G_UNLIKELY(expr)" value="(expr)"/> <define name="G_UNLIKELY(expr)" value="(expr)"/>
<define name="_G_TYPE_CIC(ip, gt, ct)" value="((ct*) ip)"/> <define name="_G_TYPE_CIC(ip, gt, ct)" value="((ct*) ip)"/>
<define name="_G_TYPE_CCC(cp, gt, ct)" value="((ct*) cp)"/> <define name="_G_TYPE_CCC(cp, gt, ct)" value="((ct*) cp)"/>
<define name="G_TYPE_CHECK_INSTANCE(instance)" value="(_G_TYPE_CHI ((GTypeInstance*) (instance)))"/>
<define name="G_TYPE_CHECK_INSTANCE_TYPE(instance, g_type)" value="(_G_TYPE_CIT ((instance), (g_type)))"/>
<define name="G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type)" value="(_G_TYPE_CIC ((instance), (g_type), c_type))"/> <define name="G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type)" value="(_G_TYPE_CIC ((instance), (g_type), c_type))"/>
<define name="G_OBJECT(obj)" value="(GObject*)(obj)"/> <define name="G_OBJECT(obj)" value="(GObject*)(obj)"/>
<define name="GTK_BOX(obj)" value="((GtkBox*)(obj))"/> <define name="GTK_BOX(obj)" value="((GtkBox*)(obj))"/>