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.

31 lines
970 B

  1. // CPrintDoc status defines
  2. // NB: The # defined of status is important; it 0..2 is used as an array index. (greglett)
  3. #define LOADING_OEHEADER 0
  4. #define LOADING_CONTENT 1
  5. #define LOADING_TABLEOFLINKS 2
  6. #define PAGING_COMPLETE 3
  7. #define READY_TO_PRINT 4
  8. #define MEMBER(strClass, strMember) \
  9. strClass.prototype.strMember = strClass##_##strMember
  10. #ifndef DEBUG
  11. #define AssertSz(x, str)
  12. #define PrintDocAlert(str)
  13. #define Transition(nNew, str) this._nStatus = nNew
  14. #else // ndef DEBUG
  15. #define AssertSz(x, str) \
  16. if (!(x)) \
  17. alert(str)
  18. #define PrintDocAlert(str) \
  19. alert("[" + this._strDoc + "," + StatusToString(this._nStatus) + "] " + str )
  20. #define Transition(nNew, str) \
  21. this._nStatus = nNew; \
  22. //PrintDocAlert("Transition status in " + str);
  23. #endif // ndef DEBUG