diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2008-04-30 04:59:47 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-09-30 07:07:35 +0000 |
commit | 308c03802400d5679ec355e577f09bd0e86bfcd9 (patch) | |
tree | 626ef998c47ebbe33e0768293fd0da57b3e922d6 /UICaboodle/UICaboodle.h | |
parent | 7e9a36b640f18febaa4d1beeda6e0f55749cd2b2 (diff) |
Factored out common code to common subproject.
Diffstat (limited to 'UICaboodle/UICaboodle.h')
-rw-r--r-- | UICaboodle/UICaboodle.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/UICaboodle/UICaboodle.h b/UICaboodle/UICaboodle.h new file mode 100644 index 0000000..afdf71b --- /dev/null +++ b/UICaboodle/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 |