You can still emulate this by wrapping all your assert's in an
if (RELEASE) {
assert ...;
}
with RELEASE a static final boolean... --DD
-----Original Message-----
From: Steve Loughran [mailto:[EMAIL PROTECTED]
Sent: Sunday, July 14, 2002 1:58 PM
To: Ant Developers List
Subject: Re: Why stop at JDK1.2? Only semi-serious question...
Nice idea though about an assert stripper at build time; I belive C had such
a thing a long time ago
#ifdef RELEASE
#define ASSERT(fact)
#else
#define ASSERT(fact) _assert(fact,_FILE_,_LINE _)
#endif
or something thereabouts :)
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>