ack/util/led/assert.h

23 lines
423 B
C
Raw Normal View History

1987-03-09 19:15:41 +00:00
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
1994-06-24 11:31:16 +00:00
/* $Id$ */
1985-01-10 13:35:39 +00:00
#ifndef lint
#ifdef NASSERT
#define assert(ex)
#else /* NASSERT */
1985-01-10 13:35:39 +00:00
#define assert(ex) \
{if (!(ex)) fatal("Assertion failed: file %s, line %d", __FILE__, __LINE__);}
#endif /* NASSERT */
#else /* lint */
1985-01-10 13:35:39 +00:00
#define assert(ex)
#endif /* lint */