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.

51 lines
1013 B

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1999 - 1999
  6. //
  7. // File: dbg.h
  8. //
  9. //--------------------------------------------------------------------------
  10. /////////////////////////////////////////////////////////////////////
  11. // debug helpers
  12. #if defined(_USE_DSA_TRACE)
  13. #if defined(TRACE)
  14. #undef TRACE
  15. void DSATrace(LPCWSTR, ...);
  16. #define TRACE DSATrace
  17. #endif // defined(TRACE)
  18. #endif // defined(_USE_DSA_TRACE)
  19. #if defined(_USE_DSA_ASSERT)
  20. #undef ASSERT
  21. #undef VERIFY
  22. #undef THIS_FILE
  23. #define THIS_FILE __FILE__
  24. BOOL DSAAssertFailedLine(LPCSTR lpszFileName, int nLine);
  25. #define ASSERT(f) \
  26. do \
  27. { \
  28. if (!(f) && DSAAssertFailedLine(THIS_FILE, __LINE__)) \
  29. ::DebugBreak(); \
  30. } while (0) \
  31. #define VERIFY(f) ASSERT(f)
  32. #endif // _USE_DSA_ASSERT
  33. #if defined (_USE_DSA_TIMER)
  34. void DSATimer(LPCWSTR, ...);
  35. #define TIMER DSATimer
  36. #else
  37. #define TIMER
  38. #endif