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.

44 lines
1.0 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1997 - 2000
  6. //
  7. // File: dbg.h
  8. //
  9. //--------------------------------------------------------------------------
  10. /////////////////////////////////////////////////////////////////////
  11. // debug helpers
  12. #if defined(_USE_ADMINPRV_TRACE)
  13. #if defined(TRACE)
  14. #undef TRACE
  15. void __cdecl DSATrace(LPCWSTR, ...);
  16. #define TRACE DSATrace
  17. #endif // defined(TRACE)
  18. #endif // defined(_USE_ADMINPRV_TRACE)
  19. #if defined(_USE_ADMINPRV_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. if (!(f) && DSAAssertFailedLine(THIS_FILE, __LINE__)) { ::DebugBreak(); }
  27. #define VERIFY(f) ASSERT(f)
  28. #endif // _USE_ADMINPRV_ASSERT
  29. #if defined (_USE_ADMINPRV_TIMER)
  30. void __cdecl DSATimer(LPCWSTR, ...);
  31. #define TIMER DSATimer
  32. #else
  33. #define TIMER
  34. #endif