Analyze debug condition in template

novice2 sorryno at em.ail
Wed Oct 27 04:53:49 UTC 2021

On Tuesday, 26 October 2021 at 15:53:54 UTC, Steven Schveighoffer 
> 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).

More information about the Digitalmars-d-learn mailing list