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

// CPrintDoc status defines
// NB: The # defined of status is important; it 0..2 is used as an array index. (greglett)
#define LOADING_OEHEADER 0
#define LOADING_CONTENT 1
#define LOADING_TABLEOFLINKS 2
#define PAGING_COMPLETE 3
#define READY_TO_PRINT 4
#define MEMBER(strClass, strMember) \
strClass.prototype.strMember = strClass##_##strMember
#ifndef DEBUG
#define AssertSz(x, str)
#define PrintDocAlert(str)
#define Transition(nNew, str) this._nStatus = nNew
#else // ndef DEBUG
#define AssertSz(x, str) \
if (!(x)) \
alert(str)
#define PrintDocAlert(str) \
alert("[" + this._strDoc + "," + StatusToString(this._nStatus) + "] " + str )
#define Transition(nNew, str) \
this._nStatus = nNew; \
//PrintDocAlert("Transition status in " + str);
#endif // ndef DEBUG