lwip-devel
[Top][All Lists]
Advanced

[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:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3

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
values.

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:

  <http://savannah.nongnu.org/task/?6792>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/





reply via email to

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