2 #define HEADER_DEBUG_H 1
5 #define ASSERT(CONDITION) \
9 panic ("%s:%d: %s(): assertion `%s' failed.", \
10 __FILE__, __LINE__, __func__, #CONDITION); \
12 #define NOT_REACHED() ASSERT (0)
14 #define ASSERT(CONDITION) ((void) 0)
15 #define NOT_REACHED() for (;;)
18 void panic (const char *, ...)
19 __attribute__ ((format (printf, 1, 2), noreturn));
22 #define ATTRIBUTE(X) __attribute__ (X)
27 #define UNUSED ATTRIBUTE ((unused))
28 #define NO_RETURN ATTRIBUTE ((noreturn))
29 #define PRINTF_FORMAT(FMT, FIRST) ATTRIBUTE ((format (printf, FMT, FIRST)))
30 #define SCANF_FORMAT(FMT, FIRST) ATTRIBUTE ((format (scanf, FMT, FIRST)))