comparison src/debug.h @ 398:74fd4e045ea6 r21-2-29

Import from CVS: tag r21-2-29
author cvs
date Mon, 13 Aug 2007 11:13:30 +0200
parents c5d627a313b1
children 697ef44129c6
comparison
equal deleted inserted replaced
397:f4aeb21a5bad 398:74fd4e045ea6
20 20
21 /* Synched up with: Not in FSF. */ 21 /* Synched up with: Not in FSF. */
22 22
23 /* Written by Chuck Thompson */ 23 /* Written by Chuck Thompson */
24 24
25 #ifndef _XEMACS_DEBUG_H_ 25 #ifndef INCLUDED_debug_h_
26 #define _XEMACS_DEBUG_H_ 26 #define INCLUDED_debug_h_
27 27
28 #define DEBUG_STDERR 1 28 #define DEBUG_STDERR 1
29 #define DEBUG_ABORT 2 29 #define DEBUG_ABORT 2
30 30
31 #ifdef DEBUG_XEMACS 31 #ifdef DEBUG_XEMACS
51 unsigned int types_of_frames; 51 unsigned int types_of_frames;
52 unsigned int types_of_devices; 52 unsigned int types_of_devices;
53 unsigned int types_of_byte_code; 53 unsigned int types_of_byte_code;
54 }; 54 };
55 55
56 extern Lisp_Object Qbuffers, Qdevices, Qfaces, Qframes, Qredisplay, Qwindows;
57
58 extern struct debug_classes active_debug_classes; 56 extern struct debug_classes active_debug_classes;
59 57
60 #define DASSERT(class, desired_type, action, assertion) do \ 58 #define DASSERT(class, desired_type, action, assertion) do \
61 { \ 59 { \
62 if (active_debug_classes.##class \ 60 if (active_debug_classes.##class \
76 74
77 #define DASSERT(class, desired_type, action, assertion) ((void) 0) 75 #define DASSERT(class, desired_type, action, assertion) ((void) 0)
78 76
79 #endif /* !DEBUG_XEMACS */ 77 #endif /* !DEBUG_XEMACS */
80 78
81 #endif /* _XEMACS_DEBUG_H_ */ 79 #endif /* INCLUDED_debug_h_ */