ImportC can now automatically run the preprocessor

Adam D Ruppe destructionator at gmail.com
Mon May 16 01:05:37 UTC 2022


On Sunday, 15 May 2022 at 20:08:32 UTC, Andrea Fontana wrote:
> For example this one 
> https://github.com/nayuki/QR-Code-generator/tree/master/c works 
> fine with the follow glue code:

Hah, that is a library (one of the many) I ported to D.

https://github.com/adamdruppe/arsd/blob/master/qrcode.d

It took me about half an hour to do the full conversion by hand 
and put a basic D api and test on top of it.

Porting C to D is actually a pretty fast process...


More information about the Digitalmars-d mailing list