Go to the documentation of this file. 56 #ifndef LWIP_HDR_DEBUG_H 57 #define LWIP_HDR_DEBUG_H 72 #define LWIP_DBG_LEVEL_ALL 0x00 74 #define LWIP_DBG_LEVEL_WARNING 0x01 76 #define LWIP_DBG_LEVEL_SERIOUS 0x02 78 #define LWIP_DBG_LEVEL_SEVERE 0x03 83 #define LWIP_DBG_MASK_LEVEL 0x03 85 #define LWIP_DBG_LEVEL_OFF LWIP_DBG_LEVEL_ALL 91 #define LWIP_DBG_ON 0x80U 93 #define LWIP_DBG_OFF 0x00U 102 #define LWIP_DBG_TRACE 0x40U 104 #define LWIP_DBG_STATE 0x20U 106 #define LWIP_DBG_FRESH 0x10U 108 #define LWIP_DBG_HALT 0x08U 127 #define LWIP_NOASSERT 134 #ifndef LWIP_NOASSERT 135 #define LWIP_ASSERT(message, assertion) do { if (!(assertion)) { \ 136 LWIP_PLATFORM_ASSERT(message); }} while(0) 137 #ifndef LWIP_PLATFORM_ASSERT 138 #error "If you want to use LWIP_ASSERT, LWIP_PLATFORM_ASSERT(message) needs to be defined in your arch/cc.h" 141 #define LWIP_ASSERT(message, assertion) 145 #ifndef LWIP_NOASSERT 146 #define LWIP_PLATFORM_ERROR(message) LWIP_PLATFORM_ASSERT(message) 147 #elif defined LWIP_DEBUG 148 #define LWIP_PLATFORM_ERROR(message) LWIP_PLATFORM_DIAG((message)) 150 #define LWIP_PLATFORM_ERROR(message) 154 #define LWIP_ERROR(message, expression, handler) do { if (!(expression)) { \ 155 LWIP_PLATFORM_ERROR(message); handler;}} while(0) 167 #ifndef LWIP_PLATFORM_DIAG 168 #error "If you want to use LWIP_DEBUG, LWIP_PLATFORM_DIAG(message) needs to be defined in your arch/cc.h" 170 #define LWIP_DEBUGF(debug, message) do { \ 172 ((debug) & LWIP_DBG_ON) && \ 173 ((debug) & LWIP_DBG_TYPES_ON) && \ 174 ((s16_t)((debug) & LWIP_DBG_MASK_LEVEL) >= LWIP_DBG_MIN_LEVEL)) { \ 175 LWIP_PLATFORM_DIAG(message); \ 176 if ((debug) & LWIP_DBG_HALT) { \ 183 #define LWIP_DEBUGF(debug, message)