summaryrefslogtreecommitdiff
path: root/UICaboodle/UCPlatform.h
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2009-09-07 12:38:10 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2010-09-30 07:13:58 +0000
commit670a04941260717d9759a85b8d20585bc976e56e (patch)
tree8424f2a6b90fbb0dd9fdf9bfe4c5d00a66c42ae3 /UICaboodle/UCPlatform.h
parent6c96d5a3b5540f2470be62bac68ea1e791eaf1fa (diff)
Major modifications to ready for stability.
Diffstat (limited to 'UICaboodle/UCPlatform.h')
-rw-r--r--UICaboodle/UCPlatform.h8
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;