StSetupGlobals is a PowerPlant class that is used for saving and restoring the global variables context.
Methods :
The methods in this class are:
Data Members:
The data members in this class are:
Source files:
See also:
Purpose:
For 68K, the constructor sets the A5 (or A4) to the value stored in the given LGlobalsContext object. Destructor restores A5/A4 to its previous value.
For PowerPC or 68K Code Fragment Manager, there is no need to set up A5/A4/RTOC since the Mixed Mode Manager will do this automatically. The constructor and destructor do nothing in this case.
Access :
Prototype:
inline StSetupGlobals(
LGlobalsContext& inGlobalsContext ); This constructor has the following parameter:
Purpose:
For 68K, the destructor calls SetA4() or SetA5().
For PowerPC or 68K Code Fragment Manager, there is no need to restore A5/A4/RTOC since the Mixed Mode Manager will do this automatically. The constructor and destructor do nothing in this case.
Access :
Prototype:
inline ~StSetupGlobals();Parameters:
Purpose:
Access :
Prototype:
long mOldGlobals;