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

51 lines
1.3 KiB
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/***************************************************************************\
* Module Name: debug.h
*
* Commonly used debugging macros.
*
* Copyright (c) 1992-1995 Microsoft Corporation
\***************************************************************************/
extern
VOID
DebugPrint(
LONG DebugPrintLevel,
PCHAR DebugMessage,
...
);
/*
* Values used to enable and disable large numbers of debug print
* statements at once.
*/
#define DEBUG_FATAL_ERROR 0 /* Error conditions - should always be enabled */
#define DEBUG_ERROR 1 /* Errors which will not cause the driver to abort */
#define DEBUG_DETAIL 99 /* Extreme detail for low-level debugging */
#define DEBUG_ENTRY_EXIT 50 /* Debug print statements at function entry and exit points */
#if DBG
VOID DebugLog(LONG, CHAR*, ...);
#define DISPDBG(arg) DebugPrint arg
#define STATEDBG(level) DebugState(level)
#if TARGET_BUILD > 351
#define RIP(x) { DebugPrint(0, x); EngDebugBreak();}
#else
#define RIP(x) { DebugPrint(0, x); DebugBreak();}
#endif
#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