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.

57 lines
1.1 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // File: oledsdbg.h
  4. //
  5. // Contains: Debugging stuff for use by the ADs code
  6. //
  7. // History:
  8. //
  9. //
  10. //--------------------------------------------------------------------------
  11. #ifndef _ADSDBG_H_
  12. #define _ADSDBG_H_
  13. //--------------------------------------------------------------------------
  14. //
  15. // Debugging Stuff
  16. //
  17. //--------------------------------------------------------------------------
  18. #include <formdeb.h>
  19. #if DBG == 1
  20. #define ADsDebugOut(x) ADsInlineDebugOut x
  21. #define ADsAssert(x) Win4Assert(x)
  22. #define ADsVerify(x) ADsAssert(x)
  23. //
  24. // HeapValidate() is only available from NTs kernel32.dll
  25. //
  26. #if defined(DAYTONA)
  27. #define VDATEHEAP() Win4Assert(HeapValidate(GetProcessHeap(), 0, NULL))
  28. #else
  29. #define VDATEHEAP()
  30. #endif
  31. #else
  32. #define ADsDebugOut(x)
  33. #define ADsAssert(x)
  34. #define ADsVerify(x) x
  35. #define VDATEHEAP()
  36. #endif
  37. DECLARE_DEBUG(ADs);
  38. #ifdef Assert
  39. #undef Assert
  40. #endif
  41. //
  42. // You should use ADsAssert, not Assert
  43. //
  44. #define Assert(x) ADsAssert(x)
  45. #endif //_ADSDBG_H_