5 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
9 * Check at compile time that something is of a particular type.
10 * Always evaluates to 1 so you may use it easily in comparisons.
12 #define typecheck(type,x) \
15 (void)(&__dummy == &__dummy2); \
20 #define dputchar(x) putchar(x)
21 #define dputs(x) puts(x)
22 #define dphex(x,y) phex(x,y)
23 #define printd(x, args ...) printf(x, ## args)
28 #define printd(x, args ...)