windows-nt/Source/XPSP1/NT/shell/osshell/control/mmsys/debug.h

25 lines
916 B
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
#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