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.
 
 
 
 
 
 

43 lines
940 B

/***************************************************************************\
* Module Name: debug.h
*
* Commonly used debugging macros.
*
* Copyright (c) 1992 Microsoft Corporation
\***************************************************************************/
extern
VOID
DebugPrint(
ULONG DebugPrintLevel,
PCHAR DebugMessage,
...
) ;
// DDRAW uses DBG_MESSAGE instead of DISPDBG.
#define DBG_MESSAGE(x) DISPDBG((0,x))
// if we are in a debug environment, macros should
#if DBG
#define DISPDBG(arg) DebugPrint arg
#ifdef WINNT_VER40
#define RIP(x) { DebugPrint(0, x); EngDebugBreak();}
#else
#define RIP(x) { DebugPrint(0, x); DebugBreak();}
#endif
#define ASSERTMSG(x,m) { if (!(x)) {RIP(m);} }
// if we are not in a debug environment, we want all of the debug
// information to be stripped out.
#else
#define DISPDBG(arg)
#define RIP(x)
#define ASSERTMSG(x,m)
#endif