mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
task #6792: added added LWIP_DEBUG_ASSERT(x,y), which triggers #ifndef LWIP_NOASSERT and #ifdef LWIP_DEBUG
This commit is contained in:
parent
6006e2f917
commit
dd4ccfc672
@ -63,8 +63,14 @@
|
|||||||
|
|
||||||
#ifndef LWIP_NOASSERT
|
#ifndef LWIP_NOASSERT
|
||||||
# define LWIP_ASSERT(x,y) do { if(!(y)) LWIP_PLATFORM_ASSERT(x); } while(0)
|
# define LWIP_ASSERT(x,y) do { if(!(y)) LWIP_PLATFORM_ASSERT(x); } while(0)
|
||||||
|
# ifdef LWIP_DEBUG
|
||||||
|
# define LWIP_DEBUG_ASSERT(x,y) LWIP_ASSERT(x,y)
|
||||||
|
# else
|
||||||
|
# define LWIP_DEBUG_ASSERT(x,y)
|
||||||
|
# endif
|
||||||
#else
|
#else
|
||||||
# define LWIP_ASSERT(x,y)
|
# define LWIP_ASSERT(x,y)
|
||||||
|
# define LWIP_DEBUG_ASSERT(x,y)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef LWIP_DEBUG
|
#ifdef LWIP_DEBUG
|
||||||
|
Loading…
Reference in New Issue
Block a user