Leaked source code of windows server 2003
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.
 
 
 
 
 
 

42 lines
982 B

/***************************************************************************\
*
* *******************
* * 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