/*
* panic.c --
*
* Source code for the "panic" library procedure for Tcl;
* individual applications will probably override this with
* an application-specific panic procedure.
*
* Copyright (c) 1988-1993 The Regents of the University of California.
* Copyright (c) 1994 Sun Microsystems, Inc.
*
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
* SCCS: @(#) panic.c 1.15 96/09/12 14:55:25
*/
#include <ast.h>
#include <stdio.h>
#if 0
#ifdef NO_STDLIB_H
#else
# include <stdlib.h>
#endif
#endif
#include "tcl.h"
#if _BLD_tcl && defined(__EXPORT__)
#define extern __EXPORT__
#endif
#undef extern
/*
* The panicProc variable contains a pointer to an application
* specific panic procedure.
*/
/*
*----------------------------------------------------------------------
*
* Tcl_SetPanicProc --
*
* Replace the default panic behavior with the specified functiion.
*
* Results:
* None.
*
* Side effects:
* Sets the panicProc variable.
*
*----------------------------------------------------------------------
*/
void
{
}
/*
*----------------------------------------------------------------------
*
* panic --
*
* Print an error message and kill the process.
*
* Results:
* None.
*
* Side effects:
* The process dies, entering the debugger if possible.
*
*----------------------------------------------------------------------
*/
/* VARARGS ARGSUSED */
void
char *format; /* Format string, suitable for passing to
* fprintf. */
* to pass to fprintf. */
{
} else {
abort();
}
}