shithub: tinygl

ref: 1ef97f8a86d8e3fe186cf20cf0dcdcba50fb0831
dir: /src/error.c/

View raw version
#include "zgl.h"
#include <stdarg.h>

void gl_fatal_error(char* format, ...) {
	va_list ap;

	va_start(ap, format);

	fprintf(stderr, "TinyGL: fatal error: ");
	vfprintf(stderr, format, ap);
	fprintf(stderr, "\n");
	exit(1);

	va_end(ap);
}