4 * Source code for the "panic" library procedure for Tcl;
5 * individual applications will probably override this with
6 * an application-specific panic procedure.
8 * Copyright 1988-1991 Regents of the University of California
9 * Permission to use, copy, modify, and distribute this
10 * software and its documentation for any purpose and without
11 * fee is hereby granted, provided that the above copyright
12 * notice appears in all copies. The University of California
13 * makes no representations about the suitability of this
14 * software for any purpose. It is provided "as is" without
15 * express or implied warranty.
17 * $Id: panic.c,v 1.1.1.1 2001/04/29 20:34:05 karll Exp $
24 *----------------------------------------------------------------------
28 * Print an error message and kill the process.
34 * The process dies, entering the debugger if possible.
36 *----------------------------------------------------------------------
39 /* VARARGS ARGSUSED */
41 panic(format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
42 char *format; /* Format string, suitable for passing to
44 char *arg1, *arg2, *arg3; /* Additional arguments (variable in number)
45 * to pass to fprintf. */
46 char *arg4, *arg5, *arg6, *arg7, *arg8;
48 (void) fprintf(stderr, format, arg1, arg2, arg3, arg4, arg5, arg6,
50 (void) fflush(stderr);