Version() for unittest OR debug?

Jacob Carlborg via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jun 10 07:21:54 PDT 2014


On 10/06/14 16:06, bearophile wrote:

> You can define a enum boolean value in the version unittest block, and
> another inside the debug {} else {}. And then you can use "if (b1 || b2)
> { ... }".

"static if" is probably what's needed.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list