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
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)