Convert this C macro kroundup32 to D mixin?
biocyberman via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Apr 8 03:11:34 PDT 2017
On Saturday, 8 April 2017 at 10:02:01 UTC, Mike Parker wrote:
>
> I would expect if you implement it as a function the compiler
> will inline it. You can always use the pragma(inline, true) [1]
> with -inline to verify.
>
> [1] https://dlang.org/spec/pragma.html#inline
Thanks for mentioning pragma. However, anyway to do it with
mixin? It's so cool so I want to do more stuffs with it :)
More information about the Digitalmars-d-learn
mailing list