source:
trunk/sys/TinyGL/src/error.c
@
417
Last change on this file since 417 was 1, checked in by , 8 years ago | |
---|---|
File size: 243 bytes |
Rev | Line | |
---|---|---|
[1] | 1 | #include <stdarg.h> |
2 | #include "zgl.h" | |
3 | ||
4 | void gl_fatal_error(char *format, ...) | |
5 | { | |
6 | va_list ap; | |
7 | ||
8 | va_start(ap,format); | |
9 | ||
10 | fprintf(stderr,"TinyGL: fatal error: "); | |
11 | vfprintf(stderr,format,ap); | |
12 | fprintf(stderr,"\n"); | |
13 | exit(1); | |
14 | ||
15 | va_end(ap); | |
16 | } |
Note: See TracBrowser
for help on using the repository browser.