diff options
Diffstat (limited to 'UICaboodle/UCPlatform.h')
-rw-r--r-- | UICaboodle/UCPlatform.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/UICaboodle/UCPlatform.h b/UICaboodle/UCPlatform.h index 9e95703..2506a5d 100644 --- a/UICaboodle/UCPlatform.h +++ b/UICaboodle/UCPlatform.h @@ -46,3 +46,11 @@ while (false) __attribute__((packed)) #define _finline inline __attribute__((always_inline)) + +#define _assume(e) \ + _assert(e) + +#define _nodefault \ + default: \ + _assume(false); \ + throw; |