Source code of Windows XP (NT5)
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.

42 lines
868 B

  1. //=======================================================================
  2. //
  3. // Copyright (c) 1998-1999 Microsoft Corporation. All Rights Reserved.
  4. //
  5. // File: debug.h
  6. //
  7. // Purpose: Debug Routines
  8. //
  9. // History: 15-Jan-99 YAsmi Created
  10. //
  11. //=======================================================================
  12. #ifndef _DEBUG_H
  13. #define _DEBUG_H
  14. #if DBG == 1
  15. #define _DEBUG
  16. #else
  17. #undef _DEBUG
  18. #endif
  19. #ifdef _DEBUG
  20. void _cdecl WUTrace(char* pszFormat, ...);
  21. void _cdecl WUTraceHR(unsigned long hr, char* pszFormat, ...);
  22. #define TRACE WUTrace
  23. #define TRACE_HR WUTraceHR
  24. #else //_DEBUG
  25. inline void _cdecl WUTrace(char* , ...) {}
  26. inline void _cdecl WUTraceHR(unsigned long, char* , ...) {}
  27. #define TRACE 1 ? (void)0 : WUTrace
  28. #define TRACE_HR 1 ? (void)0 : WUTraceHR
  29. #endif //_DEBUG
  30. #endif //_DEBUG_H