|
|
1.1 ! root 1: /***************************************************************************\ ! 2: * Module Name: debug.h ! 3: * ! 4: * Commonly used debugging macros. ! 5: * ! 6: * Copyright (c) 1992 Microsoft Corporation ! 7: \***************************************************************************/ ! 8: ! 9: extern ! 10: VOID ! 11: DebugPrint( ! 12: ULONG DebugPrintLevel, ! 13: PCHAR DebugMessage, ! 14: ... ! 15: ) ; ! 16: ! 17: // if we are in a debug environment, macros should ! 18: ! 19: #if DBG ! 20: #define DISPDBG(arg) DebugPrint arg ! 21: #define RIP(x) { DebugPrint(0, x); DebugBreak();} ! 22: #define ASSERTVGA(b, x) { if (!(b)) RIP(x); } ! 23: ! 24: // if we are not in a debug environment, we want all of the debug ! 25: // information to be stripped out. ! 26: ! 27: #else ! 28: #define DISPDBG(arg) ! 29: #define RIP(x) ! 30: #define ASSERTVGA(b, x) ! 31: ! 32: ! 33: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.