Translating C macros to D

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Tue Jul 11 00:27:19 PDT 2017


Jacob Carlborg wrote:

> On 2017-07-10 21:51, ketmar wrote:
>
>> string mixin with concatenation. this is basically what C macro is 
>> anyway.
>
> So you mean pass all arguments to the function as strings and using a 
> string mixin on the call site?

p.s.: some care should be taken for macros calling other macros, tho -- 
those should be converted to string concatenations too.


More information about the Digitalmars-d mailing list