comparison src/fontcolor-xlike-inc.c @ 5196:c87ec061e8cc

Fix compilation --without-debug. src/ChangeLog addition: 2010-04-09 Didier Verna <didier@xemacs.org> * fontcolor-xlike-inc.c (DEBUG_FONTS2): * fontcolor-xlike-inc.c (DEBUG_FONTS3): * fontcolor-xlike-inc.c (DEBUG_FONTS4): * fontcolor-xlike-inc.c (DEBUG_FONTS_LISP1): * fontcolor-xlike-inc.c (DEBUG_FONTS_LISP2): * fontcolor-xlike-inc.c (DEBUG_FONTS_LISP3): * fontcolor-xlike-inc.c (DEBUG_FONTS_LISP4): Conditionalize definitions on DEBUG_XEMACS, provide empty definitions otherwise.
author Didier Verna <didier@xemacs.org>
date Fri, 09 Apr 2010 14:51:11 +0200
parents b65692aa90d8
children 308d34e9f07d
comparison
equal deleted inserted replaced
5195:fa5d6416887f 5196:c87ec061e8cc
32 people should be using that. Oh well. (Aidan Kehoe, Sat Nov 4 12:41:12 32 people should be using that. Oh well. (Aidan Kehoe, Sat Nov 4 12:41:12
33 CET 2006) */ 33 CET 2006) */
34 34
35 #include "console-xlike-inc.h" 35 #include "console-xlike-inc.h"
36 36
37 #define DEBUG_FONTS1(format, arg) \ 37 #ifdef DEBUG_XEMACS
38 # define DEBUG_FONTS1(format, arg) \
38 do { \ 39 do { \
39 if (debug_x_fonts) \ 40 if (debug_x_fonts) \
40 debug_out (format, arg); \ 41 debug_out (format, arg); \
41 } while (0) 42 } while (0)
42 43
43 #define DEBUG_FONTS2(format, arg1, arg2) \ 44 # define DEBUG_FONTS2(format, arg1, arg2) \
44 do { \ 45 do { \
45 if (debug_x_fonts) \ 46 if (debug_x_fonts) \
46 debug_out (format, arg1, arg2); \ 47 debug_out (format, arg1, arg2); \
47 } while (0) 48 } while (0)
48 49
49 #define DEBUG_FONTS3(format, arg1, arg2, arg3) \ 50 # define DEBUG_FONTS3(format, arg1, arg2, arg3) \
50 do { \ 51 do { \
51 if (debug_x_fonts) \ 52 if (debug_x_fonts) \
52 debug_out (format, arg1, arg2, arg3); \ 53 debug_out (format, arg1, arg2, arg3); \
53 } while (0) 54 } while (0)
54 55
55 #define DEBUG_FONTS4(format, arg1, arg2, arg3, arg4) \ 56 # define DEBUG_FONTS4(format, arg1, arg2, arg3, arg4) \
56 do { \ 57 do { \
57 if (debug_x_fonts) \ 58 if (debug_x_fonts) \
58 debug_out (format, arg1, arg2, arg3, arg4); \ 59 debug_out (format, arg1, arg2, arg3, arg4); \
59 } while (0) 60 } while (0)
60 61
61 #define DEBUG_FONTS_LISP1(format, arg) \ 62 # define DEBUG_FONTS_LISP1(format, arg) \
62 do { \ 63 do { \
63 if (debug_x_fonts) \ 64 if (debug_x_fonts) \
64 debug_out_lisp (format, 1, arg); \ 65 debug_out_lisp (format, 1, arg); \
65 } while (0) 66 } while (0)
66 67
67 #define DEBUG_FONTS_LISP2(format, arg1, arg2) \ 68 # define DEBUG_FONTS_LISP2(format, arg1, arg2) \
68 do { \ 69 do { \
69 if (debug_x_fonts) \ 70 if (debug_x_fonts) \
70 debug_out_lisp (format, 2, arg1, arg2); \ 71 debug_out_lisp (format, 2, arg1, arg2); \
71 } while (0) 72 } while (0)
72 73
73 #define DEBUG_FONTS_LISP3(format, arg1, arg2, arg3) \ 74 # define DEBUG_FONTS_LISP3(format, arg1, arg2, arg3) \
74 do { \ 75 do { \
75 if (debug_x_fonts) \ 76 if (debug_x_fonts) \
76 debug_out_lisp (format, 3, arg1, arg2, arg3); \ 77 debug_out_lisp (format, 3, arg1, arg2, arg3); \
77 } while (0) 78 } while (0)
78 79
79 #define DEBUG_FONTS_LISP4(format, arg1, arg2, arg3, arg4) \ 80 # define DEBUG_FONTS_LISP4(format, arg1, arg2, arg3, arg4) \
80 do { \ 81 do { \
81 if (debug_x_fonts) \ 82 if (debug_x_fonts) \
82 debug_out_lisp (format, 4, arg1, arg2, arg3, arg4); \ 83 debug_out_lisp (format, 4, arg1, arg2, arg3, arg4); \
83 } while (0) 84 } while (0)
85 #else /* not DEBUG_XEMACS */
86 # define DEBUG_FONTS1(format, arg)
87 # define DEBUG_FONTS2(format, arg1, arg2)
88 # define DEBUG_FONTS3(format, arg1, arg2, arg3)
89 # define DEBUG_FONTS4(format, arg1, arg2, arg3, arg4)
90 # define DEBUG_FONTS_LISP1(format, arg)
91 # define DEBUG_FONTS_LISP2(format, arg1, arg2)
92 # define DEBUG_FONTS_LISP3(format, arg1, arg2, arg3)
93 # define DEBUG_FONTS_LISP4(format, arg1, arg2, arg3, arg4)
94 #endif
84 95
85 #ifdef MULE 96 #ifdef MULE
86 97
87 /* For some code it's reasonable to have only one copy and conditionalize 98 /* For some code it's reasonable to have only one copy and conditionalize
88 at run-time. For other code it isn't. */ 99 at run-time. For other code it isn't. */