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.

76 lines
2.9 KiB

  1. //----------------------------------------------------------------------------
  2. //
  3. // rsdbg.hpp
  4. //
  5. // Setup debug definitions.
  6. //
  7. // Copyright (C) Microsoft Corporation, 1997.
  8. //
  9. //----------------------------------------------------------------------------
  10. #ifndef _RSDBG_HPP_
  11. #define _RSDBG_HPP_
  12. // #include <cppdbg.hpp>
  13. // DBG_DECLARE_HEADER(RS);
  14. #if 0
  15. #define RSDPF(Args) DBG_DECLARE_DPF(RS, Args)
  16. #define RSDPFM(Args) DBG_DECLARE_DPFM(RS, Args)
  17. #define RSASSERT(Exp) DBG_DECLARE_ASSERT(RS, Exp)
  18. #define RSASSERTMSG(Exp, Args) DBG_DECLARE_ASSERTMSG(RS, Exp, Args)
  19. #define RSVERIFY(Exp) DBG_DECLARE_VERIFY(RS, Exp)
  20. #define RSVERIFYMSG(Exp) DBG_DECLARE_VERIFYMSG(RS, Exp, Args)
  21. #define RSPROMPT(Args) DBG_DECLARE_PROMPT(RS, Args)
  22. #define RSGETFLAGS(Idx) DBG_DECLARE_GETFLAGS(RS, Idx)
  23. #define RSSETFLAGS(Idx, Value) DBG_DECLARE_SETFLAGS(RS, Idx, Value)
  24. #define RSHRCHK(Exp) DBG_DECLARE_HRCHK(RS, Exp)
  25. #define RSHRGO(Exp, Label) DBG_DECLARE_HRGO(RS, Exp, Label)
  26. #define RSHRERR(Exp) DBG_DECLARE_HRERR(RS, Exp)
  27. #define RSHRRET(Exp) DBG_DECLARE_HRRET(RS, Exp)
  28. #else
  29. #define RSDPF(Args)
  30. #define RSDPFM(Args)
  31. #define RSASSERT(Exp)
  32. #define RSASSERTMSG(Exp, Args)
  33. #define RSVERIFY(Exp) (Exp)
  34. #define RSVERIFYMSG(Exp) (Exp)
  35. #define RSPROMPT(Args)
  36. #define RSGETFLAGS(Idx) (0)
  37. #define RSSETFLAGS(Idx, Value)
  38. #define RSHRCHK(Exp) (hr= (Exp))
  39. #define RSHRGO(Exp, Label) if(RSHRCHK(Exp)!= S_OK) { goto Label; } else hr
  40. #define RSHRERR(Exp) RSHGO(Exp, HR_Err)
  41. #define RSHRRET(Exp) if(RSHRCHK(Exp)!= S_OK) { return hr; } else hr
  42. #endif
  43. #define RSM_TRIS 0x00000001
  44. #define RSM_LINES 0x00000002
  45. #define RSM_POINTS 0x00000004
  46. #define RSM_Z 0x00000008
  47. #define RSM_DIFF 0x00000010
  48. #define RSM_SPEC 0x00000020
  49. #define RSM_OOW 0x00000040
  50. #define RSM_LOD 0x00000080
  51. #define RSM_TEX1 0x00000100
  52. #define RSM_TEX2 0x00000200
  53. #define RSM_FOG 0x00000400
  54. #define RSM_XCLIP 0x00000800
  55. #define RSM_YCLIP 0x00001000
  56. #define RSM_BUFFER 0x00002000
  57. #define RSM_BUFPRIM 0x00004000
  58. #define RSM_BUFSPAN 0x00008000
  59. #define RSM_FLAGS 0x00010000
  60. #define RSM_WALK 0x00020000
  61. #define RSM_DIDX 0x00040000
  62. #define RSU_BREAK_ON_RENDER_SPANS 0x00000001
  63. #define RSU_MARK_SPAN_EDGES 0x00000002
  64. #define RSU_CHECK_SPAN_EDGES 0x00000004
  65. #define RSU_NO_RENDER_SPANS 0x00000008
  66. #define RSU_FORCE_GENERAL_WALK 0x00000010
  67. #define RSU_FORCE_PIXEL_SPANS 0x00000020
  68. #define RSU_FLUSH_AFTER_PRIM 0x00000040
  69. #endif // #ifndef _RSDBG_HPP_