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
FileName
preprocess
(FileNamecsrcfile
, const ref Locloc
, out boolifile
, OutBuffer*defines
);Preprocess C file.
Parameters
FileName
csrcfile
C file to be preprocessed, with .c or .h extension
Loc
loc
The source location where
preprocess
is requested frombool
ifile
set to
true
if an output file was writtenOutBuffer*
defines
buffer to append any
#define
and#undef
lines encountered toResult: filename of output