◐ Shell
clean mode source ↗

Preprocessor - cppreference.com

Da cppreference.com.

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.

Click here for the English version of this page

<metanoindex/>

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.

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.

  • # carattere

    Original:

    # character

    The 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 of define, 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 interruzione

    Original:

    line break

    The 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.

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.

  • ' replace' macro di testo anche se può concatenare o citando identificatori (controllata dalle direttive #define e #undef, e gli operatori e # ##)

    Original:

    replace text macros while possibly concatenating or quoting identifiers (controlled by directives #define and #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 #include direttiva)

    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.