home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
300-399
/
ff314.lha
/
zc
/
zc.lzh
/
include
/
assert.h
< prev
next >
Wrap
C/C++ Source or Header
|
1988-11-09
|
266b
|
13 lines
#ifndef ASSERT_H
#define ASSERT_H
#ifdef NDEBUG
#define assert(cond)
#else
static char __AssertFmt[] = "assert failed in '%s' at line %d.\n";
#define assert(cond) if(!(cond)) \
{ fprintf(stderr, _AssertFmt, __FILE__, __LINE__); exit(-1); }
#endif
#endif ASSERT_H