[HEADERS]
[reactos.git] / irc / ArchBlackmann / panic.h
1 // panic.h
2 // This file is (C) 2003-2004 Royce Mitchell III
3 // and released under the BSD & LGPL licenses
4
5 #ifndef PANIC_H
6 #define PANIC_H
7
8 void panic ( const char* format, ... );
9
10 #define suAssert(expr) if ( !(expr) ) panic ( "%s(%lu): SOCKET ERROR %s\nExpression: %s\n", __FILE__, __LINE__, suErrDesc(SUERRNO), #expr )
11
12 #if defined(DEBUG) || defined(_DEBUG)
13 # define suVerify(expr) suAssert(expr)
14 #else
15 # define suVerify(expr) expr
16 #endif
17
18 #endif//PANIC_H