X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/11cd030858934f62f5e91b0bff5924f8fa098f90..ab2cfc1e0f4678f398698b0d9db90c69e1e71f3c:/UICaboodle/UCPlatform.h diff --git a/UICaboodle/UCPlatform.h b/UICaboodle/UCPlatform.h index 0940406c..c2412329 100644 --- a/UICaboodle/UCPlatform.h +++ b/UICaboodle/UCPlatform.h @@ -43,7 +43,20 @@ while (false) #define _label _label_(__LINE__) #define _packed \ - __attribute__((packed)) + __attribute__((__packed__)) +#define _finline \ + inline __attribute__((__always_inline__)) -//#define _finline __attribute__((force_inline)) -#define _finline 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)