Why doesn't the D compiler include the C preprocessor for importC?
Dave P.
dave287091 at gmail.com
Thu Jan 19 05:49:02 UTC 2023
On Thursday, 19 January 2023 at 05:04:11 UTC, Ki Rill wrote:
> I am genuinely curious about this. What are the arguments
> against it?
The main reason is that other compilers/platforms define a huge
number of macros and extensions that real header files depend on.
There is already a C preprocessor written in D
(https://github.com/walterbright/warp) that could be used, but
there’s an endless parade of predefined macros.
More information about the Digitalmars-d
mailing list