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.

54 lines
1.9 KiB

  1. //----------------------------------------------------------------------------
  2. //
  3. // spindbg.hpp
  4. //
  5. // Span Init debug definitions.
  6. //
  7. // Copyright (C) Microsoft Corporation, 1997.
  8. //
  9. //----------------------------------------------------------------------------
  10. #ifndef _SPINDBG_HPP_
  11. #define _SPINDBG_HPP_
  12. // #include <cppdbg.hpp>
  13. // DBG_DECLARE_HEADER(SPI);
  14. #if 0
  15. #define SPIDPF(Args) DBG_DECLARE_DPF(SPI, Args)
  16. #define SPIDPFM(Args) DBG_DECLARE_DPFM(SPI, Args)
  17. #define SPIASSERT(Exp) DBG_DECLARE_ASSERT(SPI, Exp)
  18. #define SPIASSERTMSG(Exp, Args) DBG_DECLARE_ASSERTMSG(SPI, Exp, Args)
  19. #define SPIVERIFY(Exp) DBG_DECLARE_VERIFY(SPI, Exp)
  20. #define SPIVERIFYMSG(Exp) DBG_DECLARE_VERIFYMSG(SPI, Exp, Args)
  21. #define SPIPROMPT(Args) DBG_DECLARE_PROMPT(SPI, Args)
  22. #define SPIGETFLAGS(Idx) DBG_DECLARE_GETFLAGS(SPI, Idx)
  23. #define SPISETFLAGS(Idx, Value) DBG_DECLARE_SETFLAGS(SPI, Idx, Value)
  24. #define SPIHRCHK(Exp) DBG_DECLARE_HRCHK(SPI, Exp)
  25. #define SPIHRGO(Exp, Label) DBG_DECLARE_HRGO(SPI, Exp, Label)
  26. #define SPIHRERR(Exp) DBG_DECLARE_HRERR(SPI, Exp)
  27. #define SPIHRRET(Exp) DBG_DECLARE_HRRET(SPI, Exp)
  28. #else
  29. #define SPIDPF(Args)
  30. #define SPIDPFM(Args)
  31. #define SPIASSERT(Exp)
  32. #define SPIASSERTMSG(Exp, Args)
  33. #define SPIVERIFY(Exp) (Exp)
  34. #define SPIVERIFYMSG(Exp) (Exp)
  35. #define SPIPROMPT(Args)
  36. #define SPIGETFLAGS(Idx) (0)
  37. #define SPISETFLAGS(Idx, Value)
  38. #define SPIHRCHK(Exp) (hr= (Exp))
  39. #define SPIHRGO(Exp, Label) if(SPIHRCHK(Exp)!= S_OK) { goto Label; } else hr
  40. #define SPIHRERR(Exp) SPIHGO(Exp, HR_Err)
  41. #define SPIHRRET(Exp) if(SPIHRCHK(Exp)!= S_OK) { return hr; } else hr
  42. #endif
  43. #define SPIM_INVALID 0x00000001
  44. #define SPIM_REPORT 0x00000002
  45. #define SPIU_BREAK_ON_SPANINIT 0x00000001
  46. #endif // #ifndef _SPINDBG_HPP_