A 'lazy' compilation mode to make writting multiplatform code easier without having to clutter the project
ryuukk_
ryuukk.dev at gmail.com
Wed Feb 22 15:05:04 UTC 2023
On Wednesday, 22 February 2023 at 14:56:54 UTC, Richard (Rikki)
Andrew Cattermole wrote:
> Why wouldn't this work?
>
> ```d
> else version(WASM) {
> void poll() {
> pragma(inline, true);
> // or assert(0);
> // or noreturn ext.
> }
> } else static assert(0);
> ```
That would work, but i'd then need to apply the same for every
functions and stuff, but at that point i'd rather have the extra
indentation and skip that
A lazy mode or a way to exclude a module for a target easily are
really the only solutions that i'm looking forward, the
simplified example provided was to show a usecase
More information about the Digitalmars-d
mailing list