[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [task #6792] Create ASSERTs for DEBUG compile

From: Simon Goldschmidt
Subject: [lwip-devel] [task #6792] Create ASSERTs for DEBUG compile
Date: Wed, 23 May 2007 16:07:46 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv: Gecko/20070309 Firefox/

Follow-up Comment #14, task #6792 (project lwip):

>Or with LWIP_ASSERT becoming just a warning in a release build.

If LWIP_ASSERT becomes a check in release, there still has to be error
handling code. So we can leave away the assert completely (to be faster) and
the user simply has to check the return values...

By now, I don't think that it's necessary to have release-asserts, since we
decided to write the code in a way that errors are handled by returning error

Only the decision is not that easy. I think that e.g. NULL-pointer checks
should be checked in a release build also.


Reply to this item at:


  Nachricht geschickt von/durch Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]