File: error_handlers.c

package info (click to toggle)
scantool 1.21%2Bdfsg-7
  • links: PTS
  • area: main
  • in suites: buster
  • size: 2,956 kB
  • sloc: ansic: 12,279; sh: 828; makefile: 345; asm: 86; perl: 29
file content (14 lines) | stat: -rw-r--r-- 245 bytes parent folder | download | duplicates (4)
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);
}