英語版
このページの英語版を見る

dmd.cpreprocess

Cソースファイルに対してCプリプロセッサを実行する。

仕様 C11

Authors:

ソース cpreprocess.d

DArray!ubyte preprocess(FileName csrcfile, const ref Loc loc, ref OutBuffer defines);
Cファイルを前処理する。
Parameters:
FileName csrcfile 前処理される C ファイル。拡張子は .c または .h である。
Loc loc 前処理が要求されるソースの場所。
OutBuffer defines #define および#undef の行を追加するバッファ。

結果 前処理されたファイルのテキスト

const(char)* findImportcH(const(char)*[] path);
パスに沿って探してimportc.hを見つける。
Parameters:
const(char)*[] path インポートパス
Returns:
importc.hのファイル名、見つからない場合はNULLを指定する。