Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

38 lines
779 B

/***************************************************************************\
* Module Name: debug.h
*
* Commonly used debugging macros.
*
* Copyright (c) 1992-1996 Microsoft Corporation
\***************************************************************************/
VOID vCheckFifoSpace(BYTE*, ULONG);
CHAR cGetFifoSpace(BYTE*);
VOID vWriteDword(BYTE*, ULONG);
VOID vWriteByte(BYTE*, UCHAR);
#if DBG
VOID
DebugPrint(
LONG DebugPrintLevel,
PCHAR DebugMessage,
...
);
#define DISPDBG(arg) DebugPrint arg
#define RIP(x) { DebugPrint(0, x); EngDebugBreak();}
#define ASSERTDD(x, y) if (!(x)) RIP (y)
#define STATEDBG(level)
#define LOGDBG(arg)
#else
#define DISPDBG(arg)
#define RIP(x)
#define ASSERTDD(x, y)
#define STATEDBG(level)
#define LOGDBG(arg)
#endif