home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_08_09
/
8n09016a
< prev
next >
Wrap
Text File
|
1990-08-12
|
417b
|
23 lines
/* assert.h standard header
* copyright (c) 1990 by P.J. Plauger
*/
#undef assert /* remove any previous definition */
#ifdef NDEBUG
#define assert(test) ((void)0)
#else /* NDEBUG not defined */
void _Assert(char *);
#ifndef _STR /* define stringize macro just once */
#define _STR(x) #x
#endif
#define assert(test) ((test) || \
_Assert(__FILE__ ":" _STR(__LINE__) " " #test))
#endif