dmd.cpreprocess
Run the C preprocessor on a C source file.
Specification: C11
License
Source: cpreprocess.d
Documentation: https://dlang.org/phobos/dmd_cpreprocess.html
-
Declaration
FileNamepreprocess(FileNamecsrcfile, const ref Locloc, out boolifile, OutBuffer*defines);Preprocess C file.
Parameters
FileNamecsrcfileC file to be preprocessed, with .c or .h extension
LoclocThe source location where
preprocessis requested fromboolifileset to
trueif an output file was writtenOutBuffer*definesbuffer to append any
#defineand#undeflines encountered toResult: filename of output