Leaked source code of windows server 2003
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.
 
 
 
 
 
 

24 lines
940 B

#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