12#define NORMAL_MASK 0x000000FF
13#define SPECIAL_MASK 0xFFFFFF00
14#define MIN_TRACE 0x00000001
15#define MID_TRACE 0x00000002
16#define MAX_TRACE 0x00000003
18#define DEBUG_ULTRA 0xFFFFFFFF
24#define WSH_DbgPrint(_t_, _x_) \
25 if ((_t_ > NORMAL_MASK) \
26 ? (DebugTraceLevel & _t_) > NORMAL_MASK \
27 : (DebugTraceLevel & NORMAL_MASK) >= _t_) { \
28 DbgPrint("(%hS:%d)(%hS) ", __FILE__, __LINE__, __FUNCTION__); \
39#define ASSERT(x) if (!(x)) { WSH_DbgPrint(MIN_TRACE, ("Assertion "#x" failed at %s:%d\n", __FILE__, __LINE__)); ExitProcess(0); }
44#define WSH_DbgPrint(_t_, _x_)
53#define assert(x) ASSERT(x)
54#define assert_irql(x) ASSERT_IRQL(x)
57#define UNIMPLEMENTED \
58 WSH_DbgPrint(MIN_TRACE, ("(%s:%d)(%s) is unimplemented, \
59 please try again later.\n", __FILE__, __LINE__, __FUNCTION__));
62 WSH_DbgPrint(MIN_TRACE, ("\n"));