/[lwip]/lwip/src/include/lwip/debug.h
ViewVC logotype

Diff of /lwip/src/include/lwip/debug.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.13 by likewise, Thu Feb 20 13:13:54 2003 UTC revision 1.14 by likewise, Thu Feb 20 14:35:40 2003 UTC
# Line 59  Line 59 
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   /**   /**

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26