shithub: tinygl

ref: c8a1b2691a467bb384a839d1358677fceba71006
dir: /src/error.c/

View raw version
#include <stdarg.h>
#include "zgl.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);
}