The Preprocessor Index
Go Up to C++ Language Guide Index
This section contains C++Builder preprocessor topics.
The preprocessor is a text processor that performs preliminary operations on C and C++ files before they are passed to the compiler. The C++Builder compiler normally invokes the preprocessor in its first pass to convert the text of a source file as part of the first phase of translation. You can also invoke the preprocessor separately, using the command-line preprocessor CPP32.EXE, to process text without compiling. You can use the preprocessor to insert files, conditionally compile code, apply macro substitutions of code, specify compile-time error messages, and apply machine-specific rules to sections of code.
Topics
- Preprocessor Directives
- Defining and Undefining Macros
- Macros with Parameters (C++)
- Predefined Macros
- Delphi Compatibility Macros
- Using the '\' Backslash for Line Continuation
- #pragma Directives
- #pragma alias
- #pragma alignment
- #pragma anon_struct
- #pragma argsused
- #pragma checkoption
- #pragma codeseg
- #pragma comment
- #pragma defineonoption and #pragma undefineonoption
- #pragma exit
- #pragma hdrfile
- #pragma hdrstop
- #pragma inline
- #pragma intrinsic
- #pragma link
- #pragma messages
- #pragma nopushoptwarn
- #pragmaobsolete
- #pragma once
- #pragma option
- #pragma pack
- #pragma package
- #pragma region and #pragma end_region
- #pragma resource
- #pragma startup
- #pragma undefineonoption
- #pragma warn
- Pseudo-grammar