File: error_handlers.c

package info (click to toggle)
scantool 1.21+dfsg-5
  • links: PTS
  • area: main
  • in suites: sid
  • size: 2,956 kB
  • ctags: 2,392
  • sloc: ansic: 12,279; sh: 829; makefile: 344; asm: 86; perl: 29
file content (14 lines) | stat: -rw-r--r-- 245 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <string.h>
#include "globals.h"
#include "error_handlers.h"


void fatal_error(char *msg)
{
   if (datafile != NULL)
      unload_datafile(datafile);

   allegro_message("\nERROR: %s\n", msg);
   
   exit(EXIT_FAILURE);
}