some vm to accomodate needing to have a region search spot be
[newos.git] / include / assert.h
blob346564db554e3669773f64b81e67936c189b7512
1 /*
2 ** Copyright 2002, Travis Geiselbrecht. All rights reserved.
3 ** Copyright 2002, Manuel J. Petit. All rights reserved.
4 ** Distributed under the terms of the NewOS License.
5 */
7 #ifndef __newos__libc_assert__hh__
8 #define __newos__libc_assert__hh__
11 #ifdef __cplusplus
12 extern "C"
14 #endif
17 void _assert(char const *, int, char const *);
20 #ifdef NDEBUG
21 # define assert(x)
22 #else
23 # define assert(x) ( (x) ? (void)0 : _assert(__FILE__, __LINE__, #x) )
24 #endif
27 #ifdef __cplusplus
28 } /* "C" */
29 #endif
32 #endif