59 |
/** flag for DEBUGF to halt after printing this debug message */ |
/** flag for DEBUGF to halt after printing this debug message */ |
60 |
#define DBG_HALT 0x08 |
#define DBG_HALT 0x08 |
61 |
|
|
62 |
|
#ifdef LWIP_DEBUG |
63 |
|
|
64 |
#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) |
65 |
/** print debug message only if debug message is enabled AND is of correct type |
/** print debug message only if debug message is enabled AND is of correct type |
66 |
* AND is at least DBG_LEVEL */ |
* AND is at least DBG_LEVEL */ |
67 |
#define DEBUGF(debug, x) do { if ((debug & DBG_ON) && (debug & DBG_TYPES_ON) && ((debug & DBG_MASK_LEVEL) >= DBG_MIN_LEVEL)) { LWIP_PLATFORM_DIAG(x); if (debug & DBG_HALT) while(1); } } while(0) |
#define DEBUGF(debug, x) do { if ((debug & DBG_ON) && (debug & DBG_TYPES_ON) && ((debug & DBG_MASK_LEVEL) >= DBG_MIN_LEVEL)) { LWIP_PLATFORM_DIAG(x); if (debug & DBG_HALT) while(1); } } while(0) |
68 |
#define LWIP_ERROR(x) do { LWIP_PLATFORM_DIAG(x); } while(0) |
#define LWIP_ERROR(x) do { LWIP_PLATFORM_DIAG(x); } while(0) |
69 |
|
|
70 |
#ifndef LWIP_DEBUG |
#else /* LWIP_DEBUG */ |
71 |
|
|
72 |
#define LWIP_ASSERT(x,y) |
#define LWIP_ASSERT(x,y) |
73 |
#define DEBUGF(debug, x) |
#define DEBUGF(debug, x) |
74 |
#define LWIP_ERROR(x) |
#define LWIP_ERROR(x) |
75 |
|
|
|
|
|
76 |
#define DBG_TYPES_ON 0U |
#define DBG_TYPES_ON 0U |
77 |
|
|
78 |
/** |
/** |