Simple c header => Dlang constants using mixins in compile time
Seb via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Jun 18 09:02:38 PDT 2017
On Saturday, 17 June 2017 at 11:27:40 UTC, Igor Shirkalin wrote:
> On Saturday, 17 June 2017 at 11:23:52 UTC, Cym13 wrote:
>> On Saturday, 17 June 2017 at 11:20:53 UTC, Igor Shirkalin
>> wrote:
>>> [...]
>>
>> I'm sure others will have cleaner solutions as as a quick hack
>> you can read the file at compile time, modify it, and compile
>> the D code on the go:
>>
>> [...]
>
> Thanks a lot! That what I was looking for.
FWIW there are tools for this as well,e.g.
https://github.com/jacob-carlborg/dstep
More information about the Digitalmars-d-learn
mailing list