#ifndef ANIMTOOL_ERR_H #define ANIMTOOL_ERR_H #include #include #include __attribute__((noreturn)) __attribute__((format (printf, 1, 2))) static inline void eprintf(const char *fmt, ...) { va_list args; va_start(args, fmt); vfprintf(stderr, fmt, args); va_end(args); exit(EXIT_FAILURE); } #endif