Removed LWIP_DEBUG_ASSERT

This commit is contained in:
goldsimon 2007-05-24 07:19:34 +00:00
parent 0a4130a4ff
commit 98df3c6e0a
2 changed files with 2 additions and 8 deletions

View File

@ -191,7 +191,7 @@ pbuf_alloc(pbuf_layer l, u16_t length, pbuf_flag flag)
/* make previous pbuf point to this pbuf */
r->next = q;
/* set total length of this pbuf and next in chain */
LWIP_DEBUG_ASSERT("rem_len < max_u16_t",rem_len < 0xffff);
LWIP_ASSERT("rem_len < max_u16_t",rem_len < 0xffff);
q->tot_len = (u16_t)rem_len;
/* this pbuf length is pool size, unless smaller sized tail */
q->len = rem_len > PBUF_POOL_BUFSIZE? PBUF_POOL_BUFSIZE: (u16_t)rem_len;
@ -298,7 +298,7 @@ pbuf_realloc(struct pbuf *p, u16_t new_len)
/* decrease remaining length by pbuf length */
rem_len -= q->len;
/* decrease total length indicator */
LWIP_DEBUG_ASSERT("grow < max_u16_t",grow < 0xffff);
LWIP_ASSERT("grow < max_u16_t",grow < 0xffff);
q->tot_len += (u16_t)grow;
/* proceed to next pbuf in chain */
q = q->next;

View File

@ -63,14 +63,8 @@
#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