. service tells you which device it couldn't stat
[minix3.git] / servers / inet / generic / assert.h
blobe6d6492b014e82957372feaca7957cb2a26b5915
1 /*
2 assert.h
4 Copyright 1995 Philip Homburg
5 */
6 #ifndef INET_ASSERT_H
7 #define INET_ASSERT_H
9 #if !NDEBUG
11 void bad_assertion(char *file, int line, char *what) _NORETURN;
12 void bad_compare(char *file, int line, int lhs, char *what, int rhs) _NORETURN;
14 #define assert(x) ((void)(!(x) ? bad_assertion(this_file, __LINE__, \
15 #x),0 : 0))
16 #define compare(a,t,b) (!((a) t (b)) ? bad_compare(this_file, __LINE__, \
17 (a), #a " " #t " " #b, (b)) : (void) 0)
19 #else /* NDEBUG */
21 #define assert(x) 0
22 #define compare(a,t,b) 0
24 #endif /* NDEBUG */
26 #endif /* INET_ASSERT_H */
30 * $PchId: assert.h,v 1.8 2002/03/18 21:50:32 philip Exp $