Merge branch 'master' of ssh://repo.or.cz/srv/git/tgl
[tgl.git] / src / error.c
blob7f37336a1687ed216950b1f9dd51034bb088c5e8
1 #include <stdarg.h>
2 #include "zgl.h"
4 void gl_fatal_error(char *format, ...)
6 va_list ap;
8 va_start(ap,format);
10 fprintf(stderr,"TinyGL: fatal error: ");
11 vfprintf(stderr,format,ap);
12 fprintf(stderr,"\n");
13 exit(1);
15 va_end(ap);