### pop, push

Save and restore pragma settings.

##### Syntax

#pragma push
#pragma pop

##### Targets

All platforms.

##### 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 Listing 10.29.

#### Listing 10.29 push and pop Example

#pragma far_data on
#pragma pointers_in_A0
#pragma push // push all compiler settings
#pragma far_data off
#pragma pointers_in_D0
// pop restores "far_data" and "pointers_in_A0"
#pragma pop

NOTE This example uses some platform-specific pragmas for illustrative purposes only. See the Targeting manual for your platform to determine which pragmas are supported.

This pragma does not correspond to any panel setting.

TIP Pragmas that allow on | off | reset already form a stack of previous option values. It is not necessary to use #pragma pop/push with such pragmas.