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


pop, push

Description:

Save and restore pragma settings.

Compatibility:

This pragma is compatible with the following platform targets:

68K

PowerPC

NEC V800

Intel x86

MIPS

Embedded 68K

Prototype:
  #pragma push
#pragma pop
Remarks:

The pragma push saves all the current pragma settings. The pragma pop restores all the pragma settings to what they were at the last push pragma. For example, see Listing 8.11.

push and pop example:
#pragma far_data on
#pragma pointers_in_A0
#pragma push   // push all compiler options
#pragma far_data off
#pragma pointers_in_D0
   // pop restores "far_data" and "pointers_in_A0"
#pragma pop      

These pragmas are available so you can use MacApp with Metro-werks C and C++. If you're writing new code and need to set a pragma option to its original value, use the reset argument, described in "Pragma Syntax."


[ 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: August 17, 2000