pop, push

Saves and restores 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.

Listing: push and pop example

#pragma ANSI_strict on

#pragma push /* Saves all compiler settings. */

#pragma ANSI_strict off

#pragma pop /* Restores ANSI_strict to on. */

This pragma does not correspond to any panel setting. By default, this pragma is off.

Tip: Pragmas directives that accept on | off | reset already form a stack of previous option values. It is not necessary to use #pragma pop or #pragma push with such pragmas.