On 29/10/2008 11:04, Jean-Marc Lasgouttes wrote:
Abdelrazak Younes<[EMAIL PROTECTED]>  writes:
Would it be possible to enable/disable the asserts with a command-line
switch (-dbg assert)?

I do not think so. It would defeat the intent of asserts, which is to
politely disappear when they are not needed.

The point of André is that many of them are needed and that they help finding real bugs without crashing on the user. So perhaps you are right that we need two macros:

- LASSERT_DEBUG would be enabled only if assertion is enabled, only one argument.
- current LASSERT with two arguments that would always be enabled.

Abdel.


Reply via email to