pop, push

Save and restore pragma settings.

Syntax
  #pragma push 

  #pragma pop 
Remarks

The pragma push saves all the current pragma settings. The pragma pop restores all the pragma settings that resulted from the last push pragma. For example, see the following listing.

Listing: push and pop Example
#pragma peephole on

#pragma packstruct on



#pragma push        // push all compiler settings



#pragma peephole off



#pragma packstruct off



                    // pop restores "peephole" and "packstruct"



#pragma pop

If you are writing new code and need to set a pragma setting to its original value, use the reset argument, described in Using Pragmas.

This pragma does not correspond to any panel setting in the Language panel.