5 #ifndef HAKA_COMPILER_H 6 #define HAKA_COMPILER_H 8 #define INLINE static inline 10 #define PACKED __attribute__((packed)) 12 #define FORMAT_PRINTF(fmt, args) __attribute__((format(printf, fmt, args))) 14 #define INIT __attribute__((constructor(32767))) 15 #define INIT_P(p) __attribute__((constructor(p))) 16 #define FINI __attribute__((destructor(32767))) 17 #define FINI_P(p) __attribute__((destructor(p))) 19 #define MIN(a, b) ((a) < (b) ? (a) : (b)) 21 #define UNUSED __attribute__((unused)) 23 #define STATIC_ASSERT(COND, MSG) typedef char static_assertion_##MSG[(COND)?1:-1]