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.

50 lines
2.0 KiB

  1. //--------------------------------------------------------------------
  2. // DebugWPrintf - header
  3. // Copyright (C) Microsoft Corporation, 1999
  4. //
  5. // Created by: Louis Thomas (louisth), 2-7-99
  6. //
  7. // Debugging print routines
  8. //
  9. #ifndef DEBUGWPRINTF_H
  10. #define DEBUGWPRINTF_H
  11. //#ifdef NDEBUG
  12. #ifndef DBG
  13. #define DebugWPrintf0(wszFormat)
  14. #define DebugWPrintf1(wszFormat,a)
  15. #define DebugWPrintf2(wszFormat,a,b)
  16. #define DebugWPrintf3(wszFormat,a,b,c)
  17. #define DebugWPrintf4(wszFormat,a,b,c,d)
  18. #define DebugWPrintf5(wszFormat,a,b,c,d,e)
  19. #define DebugWPrintf6(wszFormat,a,b,c,d,e,f)
  20. #define DebugWPrintf7(wszFormat,a,b,c,d,e,f,g)
  21. #define DebugWPrintf8(wszFormat,a,b,c,d,e,f,g,h)
  22. #define DebugWPrintf9(wszFormat,a,b,c,d,e,f,g,h,i)
  23. #define DebugWPrintfTerminate()
  24. //#else //NDEBUG
  25. #else //DBG
  26. #define DebugWPrintf0(wszFormat) DebugWPrintf_((wszFormat))
  27. #define DebugWPrintf1(wszFormat,a) DebugWPrintf_((wszFormat),(a))
  28. #define DebugWPrintf2(wszFormat,a,b) DebugWPrintf_((wszFormat),(a),(b))
  29. #define DebugWPrintf3(wszFormat,a,b,c) DebugWPrintf_((wszFormat),(a),(b),(c))
  30. #define DebugWPrintf4(wszFormat,a,b,c,d) DebugWPrintf_((wszFormat),(a),(b),(c),(d))
  31. #define DebugWPrintf5(wszFormat,a,b,c,d,e) DebugWPrintf_((wszFormat),(a),(b),(c),(d),(e))
  32. #define DebugWPrintf6(wszFormat,a,b,c,d,e,f) DebugWPrintf_((wszFormat),(a),(b),(c),(d),(e),(f))
  33. #define DebugWPrintf7(wszFormat,a,b,c,d,e,f,g) DebugWPrintf_((wszFormat),(a),(b),(c),(d),(e),(f),(g))
  34. #define DebugWPrintf8(wszFormat,a,b,c,d,e,f,g,h) DebugWPrintf_((wszFormat),(a),(b),(c),(d),(e),(f),(g),(h))
  35. #define DebugWPrintf9(wszFormat,a,b,c,d,e,f,g,h,i) DebugWPrintf_((wszFormat),(a),(b),(c),(d),(e),(f),(g),(h),(i))
  36. #define DebugWPrintfTerminate() DebugWPrintfTerminate_()
  37. void DebugWPrintf_(const WCHAR * wszFormat, ...);
  38. void DebugWPrintfTerminate_(void);
  39. //#endif //NDEBUG
  40. #endif //DBG
  41. #endif //DEBUGWPRINTF_H_