[D1, unittest] Cannot turn on unittest version
Don
nospam at nospam.com
Thu Oct 21 18:32:57 PDT 2010
%u wrote:
> See subject^^
> And why does the spec say that -unittest turns on asserts?
>
> http://www.digitalmars.com/d/1.0/dmd-windows.html#switches
> -unittest
> compile in unittest code, turns on asserts, and sets the unittest version
> identifier
>
> http://www.digitalmars.com/d/1.0/unittest.html
> The version identifier unittest is predefined if the compilation is done with
> unit tests enabled.
That's true in D2 only. Shouldn't be in the D1 spec.
More information about the Digitalmars-d-learn
mailing list