/[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.7 by likewise, Wed Jan 8 10:09:42 2003 UTC revision 1.8 by davidhaas, Thu Feb 6 22:18:56 2003 UTC
# Line 38  Line 38 
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: */
# Line 194  Line 194 
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: */

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

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