task #6792: added added LWIP_DEBUG_ASSERT(x,y), which triggers #ifndef LWIP_NOASSERT and #ifdef LWIP_DEBUG

This commit is contained in:
goldsimon 2007-04-29 16:35:55 +00:00
parent 6006e2f917
commit dd4ccfc672

View File

@ -63,8 +63,14 @@
#ifndef LWIP_NOASSERT
# 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
# define LWIP_ASSERT(x,y)
# define LWIP_DEBUG_ASSERT(x,y)
#endif
#ifdef LWIP_DEBUG