X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/bfc87a4de0bb13a8dbb3d222baff1154559d9841..acf268596fe5c872a3630c674b4b3d40fc5de47b:/UICaboodle/UCPlatform.h?ds=inline diff --git a/UICaboodle/UCPlatform.h b/UICaboodle/UCPlatform.h index 9e957034..c2412329 100644 --- a/UICaboodle/UCPlatform.h +++ b/UICaboodle/UCPlatform.h @@ -43,6 +43,20 @@ while (false) #define _label _label_(__LINE__) #define _packed \ - __attribute__((packed)) + __attribute__((__packed__)) +#define _finline \ + inline __attribute__((__always_inline__)) -#define _finline inline __attribute__((always_inline)) +#define _assume(e) \ + _assert(e) + +#define _nodefault \ + default: \ + _assume(false); \ + throw; + +#define _likely(expr) \ + __builtin_expect(expr, 1) + +#define _unlikely(expr) \ + __builtin_expect(expr, 0)