windows-nt/Source/XPSP1/NT/drivers/video/ms/s3/disp/debug.h
2020-09-26 16:20:57 +08:00

43 lines
940 B
C

/***************************************************************************\
*
* *******************
* * GDI SAMPLE CODE *
* *******************
*
* Module Name: debug.h
*
* Commonly used debugging macros.
*
* Copyright (c) 1992-1998 Microsoft Corporation
\***************************************************************************/
extern
VOID
DebugPrint(
LONG DebugPrintLevel,
PCHAR DebugMessage,
...
);
#if DBG
VOID DebugLog(LONG, CHAR*, ...);
#define DISPDBG(arg) DebugPrint arg
#define STATEDBG(level) DebugState(level)
#define RIP(x) { DebugPrint(0, x); EngDebugBreak();}
#define ASSERTDD(x, y) if (!(x)) RIP (y)
// If we are not in a debug environment, we want all of the debug
// information to be stripped out.
#else
#define DISPDBG(arg)
#define STATEDBG(level)
#define LOGDBG(arg)
#define RIP(x)
#define ASSERTDD(x, y)
#endif