Preprocessor
Aus cppreference.com
< cpp
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
Der Präprozessor wird vor dem Compiler aufgerufen. Das Ergebnis des Präprozessors ist eine einzelne Datei, die an den Compiler weitergeleitet wird .
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.
[Bearbeiten] Richtlinien
Die Präprozessordirektiven steuern das Verhalten der Präprozessor. Jede Anweisung belegt eine Zeile und hat folgendes Format:
-
#
Charakter - Vorverarbeitung Anweisung (eine von
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. - Argumente (abhängig von der Instruktion)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. - ZeilenumbruchOriginal:line breakThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Die Null-Richtlinie (
#
gefolgt von einen Zeilenumbruch) ist zulässig und hat keine Auswirkung.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.
[Bearbeiten] Fähigkeiten
Die Übersetzung der Quelldatei kann durch den Präprozessor wie folgt gesteuert werden:
- ' compile von Teilen der Quelldatei (gesteuert durch die Richtlinie
#if
,#ifdef
,#ifndef
,#else
,#elif
und#endif
) .Original:bedingt</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
,#elif
and#endif
).The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - ' replace' text Makros während möglicherweise Verkettung oder Quotierung von Bezeichnern (gesteuert durch Richtlinien
#define
und#undef
und Operatoren#
und##
)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' andere Dateien (gesteuert durch die Richtlinie
#include
)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. - erzeugen eine Warnung warning (gesteuert durch die Richtlinie
#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. - erzeugen einen Fehler error (gesteuert durch die Richtlinie
#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.
Die folgenden Aspekte der Präprozessor gesteuert werden kann:
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.
- ' Verhalten (gesteuert durch die Richtlinien
#pragma
)Original:Implementierung definiert</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. - ', die der Präprozessor (gesteuert durch Richtlinien
#line
)Original:Dateinamen und Online-Informationen</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.