ack/modules/src/assert/assert.h

14 lines
433 B
C
Raw Normal View History

1987-03-09 21:20:21 +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".
*/
1987-01-05 14:56:11 +00:00
/* $Header$ */
/* A S S E R T I O N M A C R O D E F I N I T I O N */
#ifdef DEBUG
/* Note: this macro uses parameter substitution inside strings */
#define assert(exp) (exp || _BadAssertion(__FILE__, __LINE__, "exp"))
#else
#define assert(exp) (1)
#endif DEBUG