First part of commit removing xprintf to make later merging easier
[libfirm] / ir / common / panic.c
1 /* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe
2 * All rights reserved.
3 *
4 * Authors: Martin Trapp, Christian Schaefer
5 *
6 */
7
8 /* $Id$ */
9
10 #ifdef HAVE_CONFIG_H
11 # include <config.h>
12 #endif
13
14 # include <stdlib.h>
15
16 # include "panic.h"
17 # include "xprintf.h"
18
19 void
20 panic (const char *fmt, ...)
21 {
22   va_list ap;
23
24   fputs ("(panic) ", stderr);
25   va_start (ap, fmt);
26   vfprintf (stderr, fmt, ap);
27   va_end (ap);
28   putc ('\n', stderr);
29   exit (1);
30 }