www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - debug(123) {}

reply "Thomas Kuehne" <eisvogel users.sourceforge.net> writes:
version.html:
 debug(n) {} // add in debug code if debug level is <= n

The implementation only includes the code if the debug level is >= n. (it treats the debug statement the same way as it does the version statement). test case: svn://svn.kuehne.cn/dstress/complex/debug (debug_02) Thomas
Oct 16 2004
parent "Walter" <newshound digitalmars.com> writes:
Ak, I had this backwards. I'll fix the doc.

"Thomas Kuehne" <eisvogel users.sourceforge.net> wrote in message
news:ckro4f$1b4l$2 digitaldaemon.com...
 version.html:
 debug(n) {} // add in debug code if debug level is <= n

The implementation only includes the code if the debug level is >= n. (it treats the debug statement the same way as it does the version

 test case:
 svn://svn.kuehne.cn/dstress/complex/debug (debug_02)

 Thomas

Oct 27 2004