xref: /csrg-svn/usr.bin/pascal/libpc/ASRT.c (revision 62092)
140865Sbostic /*-
2*62092Sbostic  * Copyright (c) 1979, 1993
3*62092Sbostic  *	The Regents of the University of California.  All rights reserved.
440865Sbostic  *
540865Sbostic  * %sccs.include.redist.c%
640865Sbostic  */
71639Smckusick 
840865Sbostic #ifndef lint
9*62092Sbostic static char sccsid[] = "@(#)ASRT.c	8.1 (Berkeley) 06/06/93";
1040865Sbostic #endif /* not lint */
111639Smckusick 
129136Smckusick char EASRT[] = "Assertion failed\n";
131639Smckusick 
ASRT(cond)149136Smckusick ASRT(cond)
151639Smckusick 	short	cond;
161639Smckusick {
171639Smckusick 	if (cond)
181639Smckusick 		return;
199136Smckusick 	ERROR(EASRT, 0);
209136Smckusick 	return;
211639Smckusick }
22