summaryrefslogtreecommitdiff
path: root/UICaboodle.h
blob: afdf71bdd6b6989765d5eeb94520c4640b4e3796 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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