|
|
1.1 root 1: /* (-lgl
2: * COHERENT Version 4.1.0
3: * Copyright (c) 1982, 1993 by Mark Williams Company.
4: * All rights reserved. May not be copied without permission.
5: -lgl) */
6:
7: #ifndef __ASSERT_H__
8: #define __ASSERT_H__
9:
10: #include <common/ccompat.h>
11:
12: __EXTERN_C__ __NO_RETURN__ void
13: __assertfail __PROTO ((__CONST__ char * _test,
14: __CONST__ char * _file, int _line));
15:
16: #endif /* ! defined (__ASSERT_H__) */
17:
18: #undef assert
19:
20: #if NDEBUG
21: #define assert(p) ((void) 0)
22: #else
23: #define assert(p) ((p) ? (void) 0 : \
24: __assertfail (__STRING (p), __FILE__, __LINE__))
25: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.