mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
555 B
35 lines
555 B
/***
|
|
*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
|