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

  1. #ifndef _debug_h_
  2. #define _debug_h_
  3. void OutputDebugLog(PWSTR buf);
  4. void DebugLog(PWSTR FileName,ULONG LineNumber,PWSTR FormatStr,...);
  5. #ifdef DBG
  6. #define dlog(_fmt_) DebugLog(TEXT(__FILE__),__LINE__,TEXT(_fmt_))
  7. #define dlog1(_fmt_,_arg1_) DebugLog(TEXT(__FILE__),__LINE__,TEXT(_fmt_),_arg1_)
  8. #define dlog2(_fmt_,_arg1_,_arg2_) DebugLog(TEXT(__FILE__),__LINE__,TEXT(_fmt_),_arg1_,_arg2_)
  9. #define dlog3(_fmt_,_arg1_,_arg2_,_arg3_) DebugLog(TEXT(__FILE__),__LINE__,TEXT(_fmt_),_arg1_,_arg2_,_arg3_)
  10. #define dlogt(_fmt_) DebugLog(TEXT(__FILE__),__LINE__,_fmt_)
  11. #else
  12. #define dlog(_fmt_)
  13. #define dlog1(_fmt_,_arg1_)
  14. #define dlog2(_fmt_,_arg1_,_arg2_)
  15. #define dlog3(_fmt_,_arg1_,_arg2_,_arg3_)
  16. #define dlogt(_fmt_)
  17. #endif
  18. #endif