version(assert) and Phobos release unittest build

Jonathan M Davis jmdavisProg at gmx.com
Thu Nov 28 12:05:13 PST 2013


On Thursday, November 28, 2013 20:08:34 Dicebot wrote:
> On Thursday, 28 November 2013 at 19:01:40 UTC, Jonathan M Davis
> 
> wrote:
> > The closest you would get would be
> > 
> > version(assert) {}
> > else { /* release */ }
> > 
> > - Jonathan M Davis
> 
> Which does not work if you also have "-unittest" ;)

Then you're out of luck for having a version block which is enabled with
-release if -unittest is also being used.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list