/[hurd]/gnumach/kern/debug.h
ViewVC logotype

Diff of /gnumach/kern/debug.h

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

revision 1.2 by roland, Thu Apr 5 06:39:20 2001 UTC revision 1.2.2.1 by ams, Wed Dec 1 06:17:18 2004 UTC
# Line 30  Line 30 
30    
31  #include <kern/assert.h> /*XXX*/  #include <kern/assert.h> /*XXX*/
32    
33  #ifdef DEBUG  #ifndef NDEBUG
34    
35  #define here() printf("@ %s:%d\n", __FILE__, __LINE__)  #define here() printf("@ %s:%d\n", __FILE__, __LINE__)
36  #define message(args) ({ printf("@ %s:%d: ", __FILE__, __LINE__); printf args; printf("\n"); })  #define message(args) ({ printf("@ %s:%d: ", __FILE__, __LINE__); printf args; printf("\n"); })
# Line 46  Line 46 
46                          __FILE__, __LINE__, (p), (id), (p->struct_id)); \                          __FILE__, __LINE__, (p), (id), (p->struct_id)); \
47          })          })
48    
49  #else /* !DEBUG */  #else /* NDEBUG */
50    
51  #define otsan()  #define otsan()
52    
# Line 55  Line 55 
55  #define struct_id_denit(p)  #define struct_id_denit(p)
56  #define struct_id_verify(p,id)  #define struct_id_verify(p,id)
57    
58  #endif /* !DEBUG */  #endif /* NDEBUG */
59    
60  #endif /* _mach_debug__debug_ */  #endif /* _mach_debug__debug_ */

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.2.2.1

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