Should `pragma(inline, expression)` be allowed ?

Nicholas Wilson iamthewilsonator at hotmail.com
Thu Nov 12 00:54:35 UTC 2020


On Wednesday, 14 October 2020 at 17:20:46 UTC, Basile B. wrote:
> Example usage, probably the only that's interesting at first 
> glance.
>
> ---
> version(D_Coverage)
>     enum do_inline = true;
> else
>     enum do_inline = false;
>
>
> pragma(inline, do_inline)
> void stuff(){}
> ---
>
> Although this could be controlled from the command line side, 
> i.e if -cov is there then be smart and dont put -inline.

https://github.com/dlang/dmd/pull/11954


More information about the Digitalmars-d mailing list