xref: /csrg-svn/usr.bin/pascal/libpc/ASRT.c (revision 40865)
1*40865Sbostic /*-
2*40865Sbostic  * Copyright (c) 1979 The Regents of the University of California.
3*40865Sbostic  * All rights reserved.
4*40865Sbostic  *
5*40865Sbostic  * %sccs.include.redist.c%
6*40865Sbostic  */
71639Smckusick 
8*40865Sbostic #ifndef lint
9*40865Sbostic static char sccsid[] = "@(#)ASRT.c	1.4 (Berkeley) 04/09/90";
10*40865Sbostic #endif /* not lint */
111639Smckusick 
129136Smckusick char EASRT[] = "Assertion failed\n";
131639Smckusick 
149136Smckusick ASRT(cond)
151639Smckusick 	short	cond;
161639Smckusick {
171639Smckusick 	if (cond)
181639Smckusick 		return;
199136Smckusick 	ERROR(EASRT, 0);
209136Smckusick 	return;
211639Smckusick }
22