home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
291.lha
/
CcLib_v1.2
/
include
/
assert.h
< prev
next >
Wrap
C/C++ Source or Header
|
1989-10-07
|
309b
|
20 lines
#ifndef ASSERT_H
#define ASSERT_H 1
#ifndef NDEBUG
#ifndef STDIO_H
#include "stdio.h"
#endif
#ifndef STDLIB_H
#include "stdlib.h"
#endif
#define assert(x)\
if (!(x)) {fprintf(stderr,"Assertion failed: x,\
file %s, line %d\n",__FILE__,__LINE__); exit(EXIT_FAILURE);}
#else
#define assert(x)
#endif
#endif