home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Vectronix 2
/
VECTRONIX2.iso
/
FILES_01
/
TURBOC_1.LZH
/
INCLUDE
/
ASSERT.H
< prev
next >
Wrap
Text File
|
1990-03-02
|
609b
|
38 lines
/* ASSERT.H
Diagnostic Includes
Copyright (c) Borland International 1988
All Rights Reserved.
*/
#if !defined( __ASSERT )
#define __ASSERT
#if !defined(__STDLIB)
#include <stdlib.h>
#endif
#if !defined(NDEBUG)
#define assert( expr )\
if ( !( expr ) )\
{\
fprintf( stderr, "\nAssertion failed: %s, file %s, line %d\n",\
#expr, __FILE__, __LINE__ );\
abort();\
}
#else
#define assert( expr )
#endif
#endif
/************************************************************************/