Re: [lwip-users] Question about LWIP_ERROR macro

2011-05-12 Thread goldsi...@gmx.de
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 define

Re: [lwip-users] Question about LWIP_ERROR macro

2011-05-12 Thread Enrico Murador - Research & Development - CET
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)