Disabled assertions in stack core
This commit is contained in:
@@ -52,6 +52,8 @@
|
||||
|
||||
#define LWIP_RAND() ((u32_t)rand())
|
||||
|
||||
#define LWIP_NOASSERT 1
|
||||
|
||||
/* different handling for unit test, normally not needed */
|
||||
#ifdef LWIP_NOASSERT_ON_ERROR
|
||||
#define LWIP_ERROR(message, expression, handler) do { if (!(expression)) { \
|
||||
|
||||
@@ -178,8 +178,7 @@ raw_input(struct pbuf *p, struct netif *inp)
|
||||
}
|
||||
} else {
|
||||
/* sanity-check that the receive callback did not alter the pbuf */
|
||||
LWIP_ASSERT("raw pcb recv callback altered pbuf payload pointer without eating packet",
|
||||
p->payload == old_payload);
|
||||
// LWIP_ASSERT("raw pcb recv callback altered pbuf payload pointer without eating packet",p->payload == old_payload);
|
||||
}
|
||||
}
|
||||
/* no receive callback function was set for this raw PCB */
|
||||
|
||||
Reference in New Issue
Block a user