[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

 

StSetupGlobals



Overview:

StSetupGlobals is a PowerPlant class that is used for saving and restoring the global variables context.

Methods :

The methods in this class are:

 

StSetupGlobals()  
~StSetupGlobals()  

Data Members:

The data members in this class are:

 

mOldGlobals  
 

Source files:

(Networking Classes)

UCallbackUtils.h

UCallbackUtils.cp

See also:

LGlobalsContext

StSetupGlobals()

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 :

Inline, Public

Prototype:

inline StSetupGlobals(
   LGlobalsContext& inGlobalsContext );
Parameters:

This constructor has the following parameter:

 

LGlobalsContext&  
inGlobalsContext  
This is a reference to the globals context.  

~StSetupGlobals()

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 :

Inline, Public

Prototype:

inline ~StSetupGlobals();
Parameters:

None

mOldGlobals

Purpose:

Storage for the old globals.

Access :

Private

Prototype:

long mOldGlobals;

 


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: July 21, 2000