Annotation of ntddk/src/video/displays/s3/debug.h, revision 1.1.1.1

1.1       root        1: /***************************************************************************\
                      2: * Module Name: debug.h
                      3: *
                      4: * Commonly used debugging macros.
                      5: *
                      6: * Copyright (c) 1992 Microsoft Corporation
                      7: \***************************************************************************/
                      8: #ifdef __CPLUSPLUS
                      9: extern "C"
                     10: VOID
                     11: DebugPrint(
                     12:     ULONG DebugPrintLevel,
                     13:     PCHAR DebugMessage,
                     14:     ...
                     15:     );
                     16: #else
                     17: extern
                     18: VOID
                     19: DebugPrint(
                     20:     ULONG DebugPrintLevel,
                     21:     PCHAR DebugMessage,
                     22:     ...
                     23:     );
                     24: #endif
                     25: 
                     26: // if we are in a debug environment, macros should
                     27: 
                     28: #if DBG
                     29: 
                     30: VOID DebugLog(ULONG, PCHAR, ...);
                     31: 
                     32: #define DISPDBG(arg) DebugPrint arg
                     33: #define LOGDBG(arg) DebugLog arg
                     34: #define RIP(x) { DebugPrint(0, x); DebugBreak();}
                     35: #define ASSERTS3(x, y) if (!(x)) RIP (y)
                     36: 
                     37: // if we are not in a debug environment, we want all of the debug
                     38: // information to be stripped out.
                     39: 
                     40: #else
                     41: 
                     42: #define DISPDBG(arg)
                     43: #define LOGDBG(arg)
                     44: #define RIP(x)
                     45: #define ASSERTS3(x, y)
                     46: 
                     47: #endif

unix.superglobalmegacorp.com

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