#ifndef UTIL_H #define UTIL_H #include // fprintf() #define warn(fmt, ...) do { \ fprintf(stderr, "W: " fmt "\n", ##__VA_ARGS__); \ } while (0) #define die(fmt, ...) do { \ fprintf(stderr, "ERROR: " fmt "\n", ##__VA_ARGS__); \ exit(EXIT_FAILURE); \ } while (0) #define UNUSED(a) ((void) (a)) #endif /* UTIL_H */