/*
 *
 *	$Header: /usr/u/wjr/src/panic/RCS/panic.h,v 1.4 1993/11/04 21:31:35 wjr Exp $
 *
 */
/*
 *
 * panic.h - declaration of panic functions.
 *
 */

#ifndef PANIC_H
#define PANIC_H

/*
 * These two are used for panics: internal consistency check failure
 */

#define panic(x) fprintf(stderr,"%s in line %d of %s\n",(x),__LINE__,__FILE__)
/*
 * assert is for internal checks. In the production version it can be
 * redefined to null, for speed.
 */
#define assert(x)       if (!(x)) panic("assert failure")
/* An expression version of assert */
#define	eassert(x)	(!(x) ? (panic("assert failure"), 0) : 0)

#endif
