unittest version
Dr Dang
nospam at yahoo.com
Thu Jul 12 20:27:23 PDT 2007
Is there a specific version identifier that is set automatically when you
specify the "-unittest" on the compiler comand-line?
Basically I want to do something like this ...
version(UNITTEST) {
import junk.stuff;
}
void main() {
...
}
unittest {
// uses junk.stuff module
}
This is so that the module junk.stuff is imported only if "-unittest" option
was given. I know that I can certain give "-version=UNITTEST" option. But I
was hoping that just giving "-unittest" option should turn on some "version"
identifier.
--Dang
More information about the Digitalmars-d-learn
mailing list