shithub: scc

ref: a6692449e11bf9f40d051e0b8eb566bca72946ca
dir: /src/libscc/die.c/

View raw version
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>

#include <scc/scc.h>

int failure;

void
die(const char *fmt, ...)
{
	failure = 1;
	va_list va;
	va_start(va, fmt);
	vfprintf(stderr, fmt, va);
	putc('\n', stderr);
	va_end(va);
	exit(1);
}