2 -----------------------------------------------
3 Generic Allegro Project Template
4 By Kronoman - July 2003
5 In loving memory of my father
6 -----------------------------------------------
8 -----------------------------------------------
10 -----------------------------------------------
18 /* --------------------------------------------------------
20 Goes back to text mode, shows the message
22 -------------------------------------------------------- */
23 void raise_error(AL_CONST
char *msg
, ...)
26 /* exits the graphics mode */
27 set_gfx_mode(GFX_TEXT
, 0, 0, 0, 0);
29 /* creates the buffer */
30 buf
= (char *)malloc(4096);
33 allegro_message("raise_error(): There is a error, and I'm out of virtual memory to show the error message. :^(\n"); }
36 /* parse the variable parameters */
39 uvszprintf(buf
, 4096, msg
, ap
);
42 allegro_message("%s\n", buf
);
45 exit(-1); /* abort the program */