home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1997 March
/
VPR9703A.ISO
/
VPR_DATA
/
DOGA
/
SOURCES
/
POLYEDIT.LZH
/
LIB
/
ASSERT.H
< prev
next >
Wrap
C/C++ Source or Header
|
1996-02-26
|
293b
|
14 lines
#if 0
#ifndef NDEBUG
#define assert(EXP) {if(!(EXP)){printf("Assertion failed: %s, file %s, line %d\n",#EXP,__FILE__,__LINE__);exit(1);}}
#else
#define assert(exp)
#endif
#else
#define assert(EXP) if(!(EXP))ExecError("内部エラー %s (%s %d行目)",#EXP,__FILE__,__LINE__)
#endif