Add ImportC compiler to dmd

Dibyendu Majumdar mobile at majumdar.org.uk
Tue May 11 13:26:41 UTC 2021


On Tuesday, 11 May 2021 at 12:51:07 UTC, Mike Parker wrote:
> On Tuesday, 11 May 2021 at 12:48:59 UTC, Mike Parker wrote:
>> On Tuesday, 11 May 2021 at 12:09:21 UTC, Dibyendu Majumdar 
>> wrote:
>>
>>>
>>> I assume that this will be added as an in-built feature - 
>>> i.e. not require invoking via another process?
>>
>>> The C code must be run through a preprocessor before it can 
>>> be processed by ImportC. Incorporating this into your build 
>>> system is advisable.
>>
>> https://github.com/WalterBright/dmd/blob/ImportC/changelog/ImportC.md#variance-from-iso-c11
>
> Also:
>> Some means of incorporating this may be practical. For now, 
>> use cpp, warp or spp.
>
> https://github.com/WalterBright/dmd/blob/ImportC/changelog/ImportC.md#c-preprocessor

Or import a single file CPP implementation :-)


More information about the Digitalmars-d mailing list