Magellan Linux

Contents of /trunk/mkinitrd-magellan/klibc/usr/include/assert.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 532 - (show annotations) (download)
Sat Sep 1 22:45:15 2007 UTC (16 years, 9 months ago) by niro
File MIME type: text/plain
File size: 324 byte(s)
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd

1 /*
2 * assert.h
3 */
4
5 #ifndef _ASSERT_H
6 #define _ASSERT_H
7
8 #include <klibc/compiler.h>
9
10 #ifdef NDEBUG
11
12 #define assert(x) ((void)(x))
13
14 #else
15
16 extern __noreturn __assert_fail(const char *, const char *, unsigned int);
17
18 #define assert(x) ((x) ? (void)0 : __assert_fail(#x, __FILE__, __LINE__))
19
20 #endif
21
22 #endif /* _ASSERT_H */