pop, push. NXP CodeWarrior Development Studio
Oglas
Oglas
Chapter 32 Pragmas for Preprocessing
Beware that when using
#pragma once on
, precompiled headers transferred from one host machine to another might not give the same results during compilation. This inconsistency is because the compiler stores the full paths of included files to distinguish between two distinct files that have identical file names but different paths. Use the warn_pch_portability
pragma to issue a warning message when you use
#pragma once on
in a precompiled header.
Also, if you enable the old_pragma_once on
pragma, the once
pragma completely ignores path names.
This pragma does not correspond to any panel setting. By default, this pragma is off
.
32.14 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. For example, see
.
Listing 32-1. 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.
32.15 pragma_prepdump
CodeWarrior Development Studio for Advanced Packet Processing Build Tools Reference Manual, Rev.
10.2, 01/2016
Freescale Semiconductor, Inc.
509
Prenesi
Oglas