File:  [WindowsNT SDKs] / ntddk / src / video / displays / s3 / debug.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 18:31:12 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: ntddk-nov-1993, HEAD
Microsoft Windows NT Build 511 (DDK SDK) 11-01-1993

/***************************************************************************\
* Module Name: debug.h
*
* Commonly used debugging macros.
*
* Copyright (c) 1992 Microsoft Corporation
\***************************************************************************/
#ifdef __CPLUSPLUS
extern "C"
VOID
DebugPrint(
    ULONG DebugPrintLevel,
    PCHAR DebugMessage,
    ...
    );
#else
extern
VOID
DebugPrint(
    ULONG DebugPrintLevel,
    PCHAR DebugMessage,
    ...
    );
#endif

// if we are in a debug environment, macros should

#if DBG

VOID DebugLog(ULONG, PCHAR, ...);

#define DISPDBG(arg) DebugPrint arg
#define LOGDBG(arg) DebugLog arg
#define RIP(x) { DebugPrint(0, x); DebugBreak();}
#define ASSERTS3(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 LOGDBG(arg)
#define RIP(x)
#define ASSERTS3(x, y)

#endif

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.