]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: add likely, unlikely and static_assert
authorMarc-André Lureau <marcandre.lureau@gmail.com>
Wed, 3 Feb 2010 22:50:54 +0000 (23:50 +0100)
committerEvan Nemerson <evan@coeus-group.com>
Sat, 13 Feb 2010 21:28:20 +0000 (13:28 -0800)
Fixes bug 608935.

vapi/glib-2.0.vapi

index 955bce7a634851cc42d045245623d21fd707501d..9622448c0cd9d3026890c6432fb076db69970f6b 100644 (file)
@@ -3807,4 +3807,11 @@ namespace GLib {
                public string markup_print (bool newlines, int indentation, int tabstop);
                public StringBuilder markup_print_string (StringBuilder ?string, bool newlines, int indentation, int tabstop);
        }
+
+       [CCode (cname = "G_LIKELY", cheader_filename = "glib.h")]
+       public static bool likely (bool expression);
+       [CCode (cname = "G_UNLIKELY", cheader_filename = "glib.h")]
+       public static bool unlikely (bool expression);
+       [CCode (cname = "G_STATIC_ASSERT", cheader_filename = "glib.h")]
+       public static bool static_assert (bool expression);
 }