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

Description:
Specifies if a header file may be included more than once in the same source file.
Compatibility:
This pragma is compatible with the following platform targets:
Prototype:
#pragma once [ on | off ]
Remarks:
Use this pragma to ensure that the compiler includes header files only once in a source file. This pragma is especially useful in precompiled header files.
There are two versions of this pragma: #pragma once and #pragma once on. Use #pragma once in a header file to ensure that the header file is included only once in a source file. Use #pragma once on in a header file or source file to insure that any file is included only once in a source file.
This pragma does not correspond to an option in any settings panel. By default this option is off.
[ 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