Static if on release build

Fra Mecca me at francescomecca.eu
Fri Oct 20 02:36:37 UTC 2017


I can't find any documentation regarding conditional compilation 
in release and debug mode.

I have read the page regarding the topicon dlang.org but adding 
the snippet below makes no difference when compiling with dub -b 
release
{
version(full) {
  //do something
} else {
//do something else
}

How can I produce a release version with different parameters 
from debug using dub and static if's?


More information about the Digitalmars-d-learn mailing list