lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Question about LWIP_ERROR macro


From: address@hidden
Subject: Re: [lwip-users] Question about LWIP_ERROR macro
Date: Thu, 12 May 2011 19:24:37 +0200
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10

Enrico Murador - Research & Development - CET wrote:
It seems to me that, once one defines LWIP_PLATFORM_ASSERT macro as "fatal", as it should be,
also when LWIP_NOASSERT is defined LWIP_ERROR remains "fatal".

You don't need to define LWIP_PLATFORM_ASSERT to fatal when LWIP_NOASSERT is defined: just define it to nothing to ensure no code gets built. Aside from that, the definition of LWIP_ERROR is purposely surrounded with "#ifndef" so that you are free to define it to "if(!_expression_) handler;" if you don't want the assert check, or even to nothing if you don't want the code.

Simon

reply via email to

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