Preprocessor
提供: cppreference.com
< cpp
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
コンパイルが開始される前にプリプロセッサが実行されます。前処理の結果は、実際のコンパイラに渡され、単一のファイルです.
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.
[編集] ディレクティブ
プリプロセッサディレクティブは、プリプロセッサの動作を制御します。各ディレクティブは1行を占有し、次のフォーマットを持つ
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.
-
#
文字Original:#
characterThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - 前処理命令(
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. - 引数(命令によって異なります)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. - 改行Original:line breakThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ヌル指令(
#
改行が続く)と、許可された効果はありませんされている.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.
[編集] 機能を提供します
プリプロセッサは、ソース·ファイル変換機能を備えています
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.
- 'ソースファイルの一部のコンパイル(ディレクティブで制御
#if
、#ifdef
、#ifndef
、#else
、#elif
と#endif
).Original:条件付き</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'テキストマクロおそらく識別子を連結または引用しながら(ディレクティブによって制御
#define
と#undef
、および演算子#
と##
)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'他のファイル(
#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. - 原因 'warning'(
#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. - 'error'を(
#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.
プリプロセッサの次の側面を制御することができる
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.
- '動作(ディレクティブ
#pragma
によって制御される)Original:実装は、定義されている</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. - 'プリプロセッサ(ディレクティブ
#line
によって制御される)が利用できるOriginal:ファイル名および行情報</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.