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_CHECK 0x00000100
19#define DEBUG_IRP 0x00000200
20#define DEBUG_ULTRA 0xFFFFFFFF
28#define AFD_DbgPrint(_t_, _x_) \
29 if ((_t_ > NORMAL_MASK) \
30 ? (DebugTraceLevel & _t_) > NORMAL_MASK \
31 : (DebugTraceLevel & NORMAL_MASK) >= _t_) { \
32 DbgPrint("(%s:%d) ", __FILE__, __LINE__); \
38#define AFD_DbgPrint(_t_, _x_) \
39 if ((_t_ > NORMAL_MASK) \
40 ? (DebugTraceLevel & _t_) > NORMAL_MASK \
41 : (DebugTraceLevel & NORMAL_MASK) >= _t_) { \
42 DbgPrint("(%s:%d)(%s) ", __FILE__, __LINE__, __FUNCTION__); \
55#define ASSERT(x) if (!(x)) { AFD_DbgPrint(MIN_TRACE, ("Assertion "#x" failed at %s:%d\n", __FILE__, __LINE__)); DbgBreakPoint(); }
60#define AFD_DbgPrint(_t_, _x_)
71#define assert(x) ASSERT(x)
76#define UNIMPLEMENTED \
77 AFD_DbgPrint(MIN_TRACE, ("The function at %s:%d is unimplemented, \
78 but come back another day.\n", __FILE__, __LINE__));
82#define UNIMPLEMENTED \
83 AFD_DbgPrint(MIN_TRACE, ("%s at %s:%d is unimplemented, " \
84 "but come back another day.\n", __FUNCTION__, __FILE__, __LINE__));
90 AFD_DbgPrint(DEBUG_CHECK, ("\n"));