38 |
|
|
39 |
#ifdef LWIP_DEBUG |
#ifdef LWIP_DEBUG |
40 |
|
|
41 |
#define ASSERT(x,y) if(!(y)) {printf("Assertion \"%s\" failed at line %d in %s\n", \ |
#define LWIP_ASSERT(x,y) if(!(y)) {printf("Assertion \"%s\" failed at line %d in %s\n", \ |
42 |
x, __LINE__, __FILE__); fflush(NULL); abort();} |
x, __LINE__, __FILE__); fflush(NULL); abort();} |
43 |
|
|
44 |
/* These defines control the amount of debugging output: */ |
/* These defines control the amount of debugging output: */ |
194 |
|
|
195 |
#else /* LWIP_DEBUG */ |
#else /* LWIP_DEBUG */ |
196 |
|
|
197 |
/* DEBUG is not defined, so we define null macros for ASSERT and DEBUGF */ |
/* DEBUG is not defined, so we define null macros for LWIP_ASSERT and DEBUGF */ |
198 |
|
|
199 |
#define ASSERT(x,y) |
#define LWIP_ASSERT(x,y) |
200 |
#define DEBUGF(debug, x) |
#define DEBUGF(debug, x) |
201 |
|
|
202 |
/* And we define those to be zero: */ |
/* And we define those to be zero: */ |