ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: Why stop at JDK1.2? Only semi-serious question...
Date Mon, 15 Jul 2002 16:35:50 GMT
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:steve_l@iseran.com] 
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:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message