Go to the documentation of this file. 32 #ifndef __LWIP_DEBUG_H__ 33 #define __LWIP_DEBUG_H__ 44 #define DBG_LEVEL_OFF 0 45 #define DBG_LEVEL_WARNING 1 46 #define DBG_LEVEL_SERIOUS 2 47 #define DBG_LEVEL_SEVERE 3 48 #define DBG_MASK_LEVEL 3 56 #define DBG_TRACE 0x40U 58 #define DBG_STATE 0x20U 60 #define DBG_FRESH 0x10U 62 #define DBG_HALT 0x08U 65 # ifndef LWIP_NOASSERT 66 # define LWIP_ASSERT(x,y) do { if(!(y)) LWIP_PLATFORM_ASSERT(x); } while(0) 68 # define LWIP_ASSERT(x,y) 76 # define LWIP_DEBUGF(debug,x) do { if (((debug) & DBG_ON) && ((debug) & DBG_TYPES_ON) && ((int)((debug) & DBG_MASK_LEVEL) >= DBG_MIN_LEVEL)) { LWIP_PLATFORM_DIAG(x); if ((debug) & DBG_HALT) while(1); } } while(0) 77 # define LWIP_ERROR(x) do { LWIP_PLATFORM_DIAG(x); } while(0) 79 # define LWIP_ASSERT(x,y) 80 # define LWIP_DEBUGF(debug,x) 81 # define LWIP_ERROR(x)