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
Jacob Carlborg via Digitalmars-d-learn Tue, 10 Jun 2014 07:30:56 -0700
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