Version() for unittest OR debug?

Juanjo Alvarez via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jun 12 06:43:33 PDT 2014


On Wednesday, 11 June 2014 at 06:50:08 UTC, Kagamin wrote:
> debug version = DebugOrUnittest;
> else version(unittest)version = DebugOrUnittest;
>
> version(DebugOrUnittest) { static 
> assert(false,"DebugOrUnittest"); }

I like this option more. I didn't knew you could assign to 
"version".

Thanks,
Juanjo


More information about the Digitalmars-d-learn mailing list