version(assert) and Phobos release unittest build

Jonathan M Davis jmdavisProg at gmx.com
Thu Nov 28 11:01:29 PST 2013


On Thursday, November 28, 2013 19:53:48 Dicebot wrote:
> On Thursday, 28 November 2013 at 18:26:15 UTC, Joseph Rushton
> 
> Wakeling wrote:
> > I think it may actually be a bug in whether -release implies
> > version(release).
> > Try out the attached code.  (r)dmd -release release.d produces
> > an executable
> > that still reports that release mode is disabled.
> 
> There is no pre-defined version(release) in D according to spec.

The closest you would get would be

version(assert) {}
else { /* release */ }

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list