|
From: | Enrico Murador - Research & Development - CET |
Subject: | Re: [lwip-users] Question about LWIP_ERROR macro |
Date: | Fri, 13 May 2011 08:53:47 +0200 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 |
Dear Simon,
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.
Ok... In fact, I did something similar... Thank you very much Enrico
[Prev in Thread] | Current Thread | [Next in Thread] |