Disabling All Inlining in DMD Debug Builds

Jack Stouffer jack at jackstouffer.com
Tue Oct 25 17:56:07 UTC 2022


On Tuesday, 25 October 2022 at 08:14:26 UTC, Per Nordlöw wrote:
> On Monday, 24 October 2022 at 20:43:45 UTC, ryuukk_ wrote:
>> I wish we could do ``version(DebugFast | Release)``
>
> Moreover, I've been using, for instance,
>
> ```d
> version(D_Coverage) {} else pragma(inline, true);
> void foo() {}
> ```
>
> to get correct coverage inclusion of `foo()`. Is this still 
> neeed?

This looks like a workable solution for now. Thanks


More information about the Digitalmars-d-learn mailing list