ImportC can now automatically run the preprocessor

Walter Bright newshound2 at digitalmars.com
Sun May 15 17:44:48 UTC 2022


On 5/15/2022 6:13 AM, Adam D Ruppe wrote:
> On Sunday, 15 May 2022 at 13:09:45 UTC, Nick Treleaven wrote:
>> Walter never claimed supporting all preprocessor macros would work.
> 
> One of the interesting potentials of importC is that all of them *could* work:
> 
> http://dpldocs.info/experimental-docs/mixinc.html

It's an interesting idea, but I'm a little unsure how it works. Does it propose 
running D code through the C preprocessor? That does not work, as the C 
preprocessor will fail with D tokens.


More information about the Digitalmars-d mailing list