ref: ead5f758ec8bf1a9e0a2d80e34d09f8d78b47526
dir: /lib/die.c/
#include <inttypes.h> #include <stdarg.h> #include <stdlib.h> #include <stdio.h> #include "../inc/cc.h" int failure; void die(const char *fmt, ...) { failure = 1; va_list va; va_start(va, fmt); fprintf(stderr, fmt, va); va_end(va); exit(1); }