]>
git.zerfleddert.de Git - micropolis/blob - src/tcl/panic.c
abd515a2f6a8041af6f91ee93c434c8e307ebc37
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.
19 static char rcsid
[] = "$Header: /user6/ouster/tcl/RCS/panic.c,v 1.3 91/10/10 11:25:51 ouster Exp $ SPRITE (Berkeley)";
26 *----------------------------------------------------------------------
30 * Print an error message and kill the process.
36 * The process dies, entering the debugger if possible.
38 *----------------------------------------------------------------------
41 /* VARARGS ARGSUSED */
43 panic(format
, arg1
, arg2
, arg3
, arg4
, arg5
, arg6
, arg7
, arg8
)
44 char *format
; /* Format string, suitable for passing to
46 char *arg1
, *arg2
, *arg3
; /* Additional arguments (variable in number)
47 * to pass to fprintf. */
48 char *arg4
, *arg5
, *arg6
, *arg7
, *arg8
;
50 (void) fprintf(stderr
, format
, arg1
, arg2
, arg3
, arg4
, arg5
, arg6
,
52 (void) fflush(stderr
);