summaryrefslogtreecommitdiffstats
path: root/private/windbg/osdebug/osassert.h
blob: f5b624d295578f62da64e3b52ffed0629a7812bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/***
*assert.h - define the assert macro
*
*   Copyright (c) 1985-1987, Microsoft Corporation.  All rights reserved.
*
*Purpose:
*   Defines the assert(exp) macro.
*   [ANSI/System V]
*
*Modified:
*   Allent 3/14/88 - call Quit instead of abort
*******************************************************************************/
#ifndef _ASSERT_DEFINED

#if DBG



#define assert(exp) { \
    if (!(exp)) { \
        LBPrintf( #exp, __FILE__, __LINE__); \
        LBQuit(2); \
    } \
}

#else

#define assert(exp)

#endif /* NDEBUG */

#define _ASSERT_DEFINED

#endif /* _ASSERT_DEFINED */