How to make invariant switchable
Jason House
jason.james.house at gmail.com
Thu Jun 18 09:21:38 PDT 2009
Qian Xu Wrote:
> Release and Debug are two configuration sets.
>
> FEATURE | DEBUG | RELEASE
> ---------------+-------+---------
> assertion | |
> ---------------+-------+---------
> invariant | |
> ---------------+-------+---------
> debug symbols | |
> ---------------+-------+---------
> optimization | |
> ---------------+-------+---------
> inline | |
> ---------------+-------+---------
> more... | |
>
>
> It is also inconvient to switch "invariant" (or debug features) with a
> universal "-release" flag.
No.
They're not as universal as you think.
-release disables invariant, array bounds checking, etc...
-debug enables debug statements
-inline enables inlining
-O performs optimizations
-g enables debug symbols
-unittest enables unit tests
These posts should be on d.learn...
More information about the Digitalmars-d
mailing list