lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Question about LWIP_ERROR macro


From: Enrico Murador - Research & Development - CET
Subject: [lwip-users] Question about LWIP_ERROR macro
Date: Tue, 10 May 2011 14:48:48 +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

Hi all,

On LWIP_ERROR(message, _expression_, handler) macro, if "_expression_" is false, "message" is printed using
LWIP_PLATFORM_ASSERT (that, as described in sys_arch.txt, should be a never-returning call), so the
subsequent call to "handler" seems useless.

If the LWIP_ERROR call has not to be "fatal", should LWIP_PLATFORM_DIAG macro be used in it instead of the assert macro?
(maybe LWIP_ERROR could be "fatal" only if LWIP_NOASSERT is undefined...)

Thank you
Enrico


reply via email to

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