SymbolicC`
SymbolicC`

CPreprocessorIfdef

CPreprocessorIfdef[cond]

プリプロセッサのifdef条件文の記号表現である.

CPreprocessorIfdef[cond,true,false]

真と偽の場合を表す.

詳細とオプション

  • SymbolicCの式は不活性である.これらの式は未評価の形式のままで自らを評価して返す.
  • SymbolicCの式は,ToCCodeStringを使ってCの文字列に変換することができる.

例題

  (1)

SymbolicCを使うには,まずパッケージをロードする必要がある:

プリプロセッサのifdef条件指示文を作成する:

ifdef,else,endifの文をすべて使う組合せを作成する:

ifdef指示文にコメントを加える:

Wolfram Research (2010), CPreprocessorIfdef, Wolfram言語関数, https://reference.wolfram.com/language/SymbolicC/ref/CPreprocessorIfdef.html.

テキスト

Wolfram Research (2010), CPreprocessorIfdef, Wolfram言語関数, https://reference.wolfram.com/language/SymbolicC/ref/CPreprocessorIfdef.html.

CMS

Wolfram Language. 2010. "CPreprocessorIfdef." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/SymbolicC/ref/CPreprocessorIfdef.html.

APA

Wolfram Language. (2010). CPreprocessorIfdef. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/SymbolicC/ref/CPreprocessorIfdef.html

BibTeX

@misc{reference.wolfram_2024_cpreprocessorifdef, author="Wolfram Research", title="{CPreprocessorIfdef}", year="2010", howpublished="\url{https://reference.wolfram.com/language/SymbolicC/ref/CPreprocessorIfdef.html}", note=[Accessed: 18-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_cpreprocessorifdef, organization={Wolfram Research}, title={CPreprocessorIfdef}, year={2010}, url={https://reference.wolfram.com/language/SymbolicC/ref/CPreprocessorIfdef.html}, note=[Accessed: 18-November-2024 ]}