File: assert.h

package info (click to toggle)
spider 1.2-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 852 kB
  • ctags: 1,229
  • sloc: ansic: 6,250; makefile: 839; sh: 9
file content (17 lines) | stat: -rw-r--r-- 426 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 *	Spider
 *
 *	(c) Copyright 1989,  Donald R. Woods and Sun Microsystems, Inc.
 *	(c) Copyright 1990, David Lemke and Network Computing Devices Inc.
 *
 *	See copyright.h for the terms of the copyright.
 *
 *	@(#)assert.h	2.1	90/04/25
 *
 */

#ifdef DEBUG
#define assert(ex)	{if (!(ex)){(void)fprintf(stderr,"Assertion \"ex\" failed: file \"%s\", line %d\n", __FILE__, __LINE__);abort();}}
#else
#define assert(ex)
#endif