xref: /original-bsd/usr.bin/pascal/libpc/STLIM.c (revision e59fb703)
1 /*-
2  * Copyright (c) 1979 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  */
7 
8 #ifndef lint
9 static char sccsid[] = "@(#)STLIM.c	1.3 (Berkeley) 04/09/90";
10 #endif /* not lint */
11 
12 #include "h00vars.h"
13 
14 STLIM(limit)
15 
16 	long	limit;
17 {
18 	if (_stcnt >= limit) {
19 		ERROR("Statement count limit of %D exceeded\n", _stcnt);
20 		return;
21 	}
22 	_stlim = limit;
23 }
24