home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fish 'n' More 2
/
fishmore-publicdomainlibraryvol.ii1991xetec.iso
/
fish
/
languages
/
dice_466
/
netdcc
/
include
/
assert.h
next >
Wrap
C/C++ Source or Header
|
1990-08-02
|
506b
|
29 lines
/*
* ASSERT.H
*
* (c)Copyright 1990, Matthew Dillon, All Rights Reserved
*
* relatively optimized, takes advantage of GNU-cpp __BASE_FILE__ macro
* allowing us to store the filename string once in a static decl.
*/
#ifndef _ASSERT_H
#define _ASSERT_H
static char *__BaseFile = __BASE_FILE__;
extern void __FailedAssert(char *, int);
#ifndef assert
#ifdef NDEBUG
#define assert(ignore)
#else
#define assert(exp) if (!(exp)) __FailedAssert( __BaseFile, __LINE__);
#endif
#endif
#endif