On Tuesday, 26 October 2021 at 15:53:54 UTC, Steven Schveighoffer
wrote:
mixin("debug(" ~ func ~ ") doRealThing();");
Thank you, Steven.
Unfortunately, all variants with global "-debug" in command line
is unhandy.
It leads to ugly, very big command line :(
Note that setting debug versions doesn't get seen in imported
modules, only ones specified on the command line will be seen
inside your logger.
This is the problem.
At the moment i failed to get "debug" condition from one module
(caller) in other module (logger).
Variant with UDA failed too - i can't get UDA from one module
(caller) in other module (logger).