|
|
1.1 root 1: /***
2: *assert.h - define the assert macro
3: *
4: * Copyright (c) 1985-1990, Microsoft Corporation. All rights reserved.
5: *
6: *Purpose:
7: * Defines the assert(exp) macro.
8: * [ANSI/System V]
9: *
10: ****/
11:
12:
13: #undef assert
14:
15: #ifdef NDEBUG
16:
17: #define assert(exp) ((void)0)
18:
19: #else
20:
21: #ifdef __cplusplus
22: extern "C" {
23: #endif
24: void _assert(void *, void *, unsigned);
25: #ifdef __cplusplus
26: }
27: #endif
28:
29: #define assert(exp) \
30: ( (exp) ? (void) 0 : _assert(#exp, __FILE__, __LINE__) )
31:
32: #endif /* NDEBUG */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.