/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS WinSock 2 DLL
- * FILE: include/debug.h
+ * FILE: dll/win32/ws2_32/include/debug.h
* PURPOSE: Debugging support macros
* DEFINES: DBG - Enable debug output
* NASSERT - Disable assertions
*/
+
#ifndef __DEBUG_H
#define __DEBUG_H
extern DWORD DebugTraceLevel;
#define WS_DbgPrint(_t_, _x_) \
- if (((DebugTraceLevel & NORMAL_MASK) >= _t_) || \
- ((DebugTraceLevel & _t_) > NORMAL_MASK)) { \
+ if ((_t_ > NORMAL_MASK) \
+ ? (DebugTraceLevel & _t_) > NORMAL_MASK \
+ : (DebugTraceLevel & NORMAL_MASK) >= _t_) { \
DbgPrint("(%hS:%d)(%hS) ", __FILE__, __LINE__, __FUNCTION__); \
DbgPrint _x_; \
}
#define CP CHECKPOINT
#endif /* __DEBUG_H */
-
-/* EOF */