diff options
Diffstat (limited to 'src/log.h')
-rw-r--r-- | src/log.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -33,4 +33,14 @@ error(const char *format, ...) exit(EXIT_FAILURE); } +static inline void +require(const char *format, ...) +{ + va_list args; + va_start(args, format); + vfprintf(stderr, format, args); + va_end(args); + exit(EXIT_SUCCESS); +} + #endif |