mirror of https://github.com/lianthony/NT4.0
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
794 B
43 lines
794 B
/******************************* MODULE HEADER ******************************
|
|
* debug.h
|
|
*
|
|
* Revision History:
|
|
*
|
|
****************************************************************************/
|
|
|
|
#if DBG
|
|
|
|
#ifdef PUBLIC
|
|
//DWORD dwDebugFlag = 0;
|
|
#else
|
|
extern DWORD dwDebugFlag;
|
|
#endif
|
|
|
|
#endif //DBG
|
|
|
|
#ifdef DBG
|
|
void DrvDbgPrint(
|
|
LPCSTR pstr,
|
|
...);
|
|
#endif /* DBG */
|
|
|
|
#ifdef DBG
|
|
#define TRACE(xxx, Msg) \
|
|
if (dwDebugFlag == xxx) {DrvDbgPrint Msg;}
|
|
#define WARN(xxx, Msg) \
|
|
if (xxx) {DrvDbgPrint Msg;}
|
|
#define ERRORMSG(xxx, Msg) \
|
|
if (xxx) {DrvDbgPrint, Msg;}
|
|
#else
|
|
#define TRACE(xxx, Msg)
|
|
#define WARN(xxx, Msg)
|
|
#define ERRORMSG(xxx, Msg)
|
|
#endif /* DBG */
|
|
|
|
#ifdef DBG
|
|
|
|
#ifndef _WINDDI_
|
|
#endif // _WINDDI_
|
|
|
|
#endif //if DBG
|
|
|