2025-04-27 07:49:33 -04:00

44 lines
940 B
C

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