summaryrefslogtreecommitdiff
path: root/UICaboodle.h
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2008-04-30 04:58:19 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2008-04-30 04:58:19 +0000
commit7e9a36b640f18febaa4d1beeda6e0f55749cd2b2 (patch)
tree04f662e583f70175503cdf5e0393cbd3eaccb7cb /UICaboodle.h
parentd36e83a374d0d26a145e9cba631dd984578ee571 (diff)
Began factoring out some common tools.
Diffstat (limited to 'UICaboodle.h')
-rw-r--r--UICaboodle.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/UICaboodle.h b/UICaboodle.h
new file mode 100644
index 0000000..afdf71b
--- /dev/null
+++ b/UICaboodle.h
@@ -0,0 +1,14 @@
+#include <objc/objc.h>
+
+#define _trace() fprintf(stderr, "_trace()@%s:%u[%s]\n", __FILE__, __LINE__, __FUNCTION__)
+
+#define _assert(test) do \
+ if (!(test)) { \
+ fprintf(stderr, "_assert(%d:%s)@%s:%u[%s]\n", errno, #test, __FILE__, __LINE__, __FUNCTION__); \
+ exit(-1); \
+ } \
+while (false)
+
+#define _not(type) ((type) ~ (type) 0)
+
+#define _transient