Category : C++ Source Code
Archive   : VCCRT2.ZIP
Filename : ASSERT.H

 
Output of file : ASSERT.H contained in archive : VCCRT2.ZIP
/***
*assert.h - define the assert macro
*
* Copyright (c) 1985-1992, Microsoft Corporation. All rights reserved.
*
*Purpose:
* Defines the assert(exp) macro.
* [ANSI/System V]
*
****/

#if (_MSC_VER <= 600)
#define __cdecl _cdecl
#define __far _far
#endif

#undef assert

#ifdef NDEBUG

#define assert(exp) ((void)0)

#else
#ifdef __cplusplus
extern "C" {
#endif
void __cdecl _assert(void *, void *, unsigned);
#ifdef __cplusplus
}
#endif

#define assert(exp) \
( (exp) ? (void) 0 : _assert(#exp, __FILE__, __LINE__) )

#endif /* NDEBUG */


  3 Responses to “Category : C++ Source Code
Archive   : VCCRT2.ZIP
Filename : ASSERT.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/