Preprocessor
Da cppreference.com.
< cpp
|
|
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
Il preprocessore viene eseguito prima che la compilazione inizi. Il risultato del pre-processing è un singolo file che viene quindi passato al compilatore effettivo.
Original:
The preprocessor runs before the compilation begins. The result of preprocessing is single file which is then passed to the actual compiler.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[modifica] Direttive
Le direttive al preprocessore controllano il comportamento del preprocessore. Ogni direttiva occupa una riga e ha il seguente formato:
Original:
The preprocessing directives control the behavior of the preprocessor. Each directive occupies one line and has the following format:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
-
#carattereOriginal:#characterThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - istruzione pre-elaborazione (uno dei
define,undef,include,if,ifdef,ifndef,else,elif,endif,line,error,warning,pragma)Original:preprocessing instruction (one ofdefine,undef,include,if,ifdef,ifndef,else,elif,endif,line,error,warning,pragma)The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - argomenti (dipende dalle istruzioni)Original:arguments (depends on the instruction)The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - linea di interruzioneOriginal:line breakThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
La direttiva null (
# seguita da un'interruzione di riga) è ammesso e non ha alcun effetto.Original:
The null directive (
# followed by a line break) is allowed and has no effect.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[modifica] Capabilities
Il preprocessore ha le capacità di traduzione dei file di origine:
Original:
The preprocessor has the source file translation capabilities:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
- ' di compilazione di parti del file di origine (controllata dalla direttiva
#if,#ifdef,#ifndef,#else,#elife#endif).Original:condizionale</div> compile of parts of source file (controlled by directiveOriginal:conditionallyThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.#if,#ifdef,#ifndef,#else,#elifand#endif).The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - ' replace' macro di testo anche se può concatenare o citando identificatori (controllata dalle direttive
#definee#undef, e gli operatori e###)Original:replace text macros while possibly concatenating or quoting identifiers (controlled by directives#defineand#undef, and operators#and##)The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - 'include' altri file (controllata da
#includedirettiva)Original:include other files (controlled by directive#include)The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - provocare un 'warning' (controllata dalla direttiva
#warning)Original:cause a warning (controlled by directive#warning)The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - causare un 'error' (controllata dalla direttiva
#error)Original:cause an error (controlled by directive#error)The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
I seguenti aspetti del preprocessore può essere controllato:
Original:
The following aspects of the preprocessor can be controlled:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
- ' comportamento (controllata dalle direttive
#pragma)Original:attuazione definito</div> behavior (controlled by directivesOriginal:implementation definedThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.#pragma)The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - ' a disposizione del preprocessore (controllata dalle direttive
#line)Original:il nome del file e le informazioni sulla riga</div> available to the preprocessor (controlled by directivesOriginal:file name and line informationThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.#line)The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.