windows-nt/Source/XPSP1/NT/shell/osshell/control/mmsys/debug.h
2020-09-26 16:20:57 +08:00

25 lines
916 B
C

#ifndef _debug_h_
#define _debug_h_
void OutputDebugLog(PWSTR buf);
void DebugLog(PWSTR FileName,ULONG LineNumber,PWSTR FormatStr,...);
#ifdef DBG
#define dlog(_fmt_) DebugLog(TEXT(__FILE__),__LINE__,TEXT(_fmt_))
#define dlog1(_fmt_,_arg1_) DebugLog(TEXT(__FILE__),__LINE__,TEXT(_fmt_),_arg1_)
#define dlog2(_fmt_,_arg1_,_arg2_) DebugLog(TEXT(__FILE__),__LINE__,TEXT(_fmt_),_arg1_,_arg2_)
#define dlog3(_fmt_,_arg1_,_arg2_,_arg3_) DebugLog(TEXT(__FILE__),__LINE__,TEXT(_fmt_),_arg1_,_arg2_,_arg3_)
#define dlogt(_fmt_) DebugLog(TEXT(__FILE__),__LINE__,_fmt_)
#else
#define dlog(_fmt_)
#define dlog1(_fmt_,_arg1_)
#define dlog2(_fmt_,_arg1_,_arg2_)
#define dlog3(_fmt_,_arg1_,_arg2_,_arg3_)
#define dlogt(_fmt_)
#endif
#endif