1 /* LotU: Error handling functions.
2 
3    Copyright (C) 1995, Jamie Lokier.
4    Written for Rebellion Developments, Ltd.
5 
6    Permission to use, copy, modify and distribute this file for any
7    purpose by Rebellion Developments, Ltd. is hereby granted.  If you
8    want to use this file outside the company, please let me know.
9 */
10 
11 #include "3dc.h"
12 #include "fail.h"
13 #include "dxlog.h"
14 
15 void
fail(const char * format,...)16 fail (const char * format, ...)
17 {
18   va_list ap;
19 
20   LOGDXSTR(format);
21   va_start (ap, format);
22   if (format != 0)
23     vfprintf (stderr, format, ap);
24   va_end (ap);
25 
26   exit (EXIT_FAILURE);
27 }
28