home *** CD-ROM | disk | FTP | other *** search
- //
- // **************************************************************
- // JdeBP C++ Library Routines General Public Licence v1.00
- // Copyright (c) 1991,1992 Jonathan de Boyne Pollard
- // **************************************************************
- //
- // ASSERTIONS (ANSI)
- //
-
- #if !defined(___STDDEF_H_INCLUDED)
- #include <_stddef.h>
- #endif
-
- #if !defined(assert)
- extern "C" void _CDECL _Assert ( const char * ) ;
- #endif
-
- #undef assert
-
- #ifndef NDEBUG
- # define _STRINGOF(x) _VALUE(x)
- # define _VALUE(x) #x
- # define assert(x) ((x) ? (void)0 : \
- _Assert(__FILE__ "(" _STRINGOF(__LINE__) ") " #x))
- #else
- # define assert(x) ((void)0)
- #endif
-
-