Release 941122
[wine/multimedia.git] / include / debug.h
blob6bdc132c63acb3592f9e06a3187fb4a5e574017d
1 #include <stdio.h>
3 #define stddeb stdout
4 #define stdnimp stderr
6 /* Do not remove this line or change anything below this line */
8 #ifdef DEBUG_NONE_EXT
9 #undef DEBUG_ACCEL
10 #undef DEBUG_BITMAP
11 #undef DEBUG_CALLBACK
12 #undef DEBUG_CARET
13 #undef DEBUG_CATCH
14 #undef DEBUG_CDAUDIO
15 #undef DEBUG_CLASS
16 #undef DEBUG_CLIPBOARD
17 #undef DEBUG_CLIPPING
18 #undef DEBUG_COMBO
19 #undef DEBUG_COMM
20 #undef DEBUG_CURSOR
21 #undef DEBUG_DC
22 #undef DEBUG_DIALOG
23 #undef DEBUG_DLL
24 #undef DEBUG_DOSFS
25 #undef DEBUG_DRIVER
26 #undef DEBUG_EDIT
27 #undef DEBUG_ENUM
28 #undef DEBUG_EVENT
29 #undef DEBUG_EXEC
30 #undef DEBUG_FILE
31 #undef DEBUG_FIXUP
32 #undef DEBUG_FONT
33 #undef DEBUG_GDI
34 #undef DEBUG_GRAPHICS
35 #undef DEBUG_HEAP
36 #undef DEBUG_ICON
37 #undef DEBUG_INT
38 #undef DEBUG_KEY
39 #undef DEBUG_KEYBOARD
40 #undef DEBUG_LDT
41 #undef DEBUG_LISTBOX
42 #undef DEBUG_MCI
43 #undef DEBUG_MCIANIM
44 #undef DEBUG_MCIWAVE
45 #undef DEBUG_MDI
46 #undef DEBUG_MENU
47 #undef DEBUG_MENUCALC
48 #undef DEBUG_MESSAGE
49 #undef DEBUG_METAFILE
50 #undef DEBUG_MIDI
51 #undef DEBUG_MMIO
52 #undef DEBUG_MMTIME
53 #undef DEBUG_MODULE
54 #undef DEBUG_MSG
55 #undef DEBUG_MSGBOX
56 #undef DEBUG_NONCLIENT
57 #undef DEBUG_PALETTE
58 #undef DEBUG_PROFILE
59 #undef DEBUG_PROP
60 #undef DEBUG_REG
61 #undef DEBUG_REGION
62 #undef DEBUG_RESOURCE
63 #undef DEBUG_SCROLL
64 #undef DEBUG_SELECTORS
65 #undef DEBUG_STRESS
66 #undef DEBUG_SYSCOLOR
67 #undef DEBUG_TASK
68 #undef DEBUG_TEXT
69 #undef DEBUG_TIMER
70 #undef DEBUG_UTILITY
71 #undef DEBUG_WIN
72 #undef DEBUG_WINSOCK
73 #endif
75 #ifdef DEBUG_ALL_EXT
76 #define DEBUG_ACCEL
77 #define DEBUG_BITMAP
78 #define DEBUG_CALLBACK
79 #define DEBUG_CARET
80 #define DEBUG_CATCH
81 #define DEBUG_CDAUDIO
82 #define DEBUG_CLASS
83 #define DEBUG_CLIPBOARD
84 #define DEBUG_CLIPPING
85 #define DEBUG_COMBO
86 #define DEBUG_COMM
87 #define DEBUG_CURSOR
88 #define DEBUG_DC
89 #define DEBUG_DIALOG
90 #define DEBUG_DLL
91 #define DEBUG_DOSFS
92 #define DEBUG_DRIVER
93 #define DEBUG_EDIT
94 #define DEBUG_ENUM
95 #define DEBUG_EVENT
96 #define DEBUG_EXEC
97 #define DEBUG_FILE
98 #define DEBUG_FIXUP
99 #define DEBUG_FONT
100 #define DEBUG_GDI
101 #define DEBUG_GRAPHICS
102 #define DEBUG_HEAP
103 #define DEBUG_ICON
104 #define DEBUG_INT
105 #define DEBUG_KEY
106 #define DEBUG_KEYBOARD
107 #define DEBUG_LDT
108 #define DEBUG_LISTBOX
109 #define DEBUG_MCI
110 #define DEBUG_MCIANIM
111 #define DEBUG_MCIWAVE
112 #define DEBUG_MDI
113 #define DEBUG_MENU
114 #define DEBUG_MENUCALC
115 #define DEBUG_MESSAGE
116 #define DEBUG_METAFILE
117 #define DEBUG_MIDI
118 #define DEBUG_MMIO
119 #define DEBUG_MMTIME
120 #define DEBUG_MODULE
121 #define DEBUG_MSG
122 #define DEBUG_MSGBOX
123 #define DEBUG_NONCLIENT
124 #define DEBUG_PALETTE
125 #define DEBUG_PROFILE
126 #define DEBUG_PROP
127 #define DEBUG_REG
128 #define DEBUG_REGION
129 #define DEBUG_RESOURCE
130 #define DEBUG_SCROLL
131 #define DEBUG_SELECTORS
132 #define DEBUG_STRESS
133 #define DEBUG_SYSCOLOR
134 #define DEBUG_TASK
135 #define DEBUG_TEXT
136 #define DEBUG_TIMER
137 #define DEBUG_UTILITY
138 #define DEBUG_WIN
139 #define DEBUG_WINSOCK
140 #endif
142 #ifdef DEBUG_RUNTIME
143 #ifdef DEBUG_DEFINE_VARIABLES
144 short debug_msg_enabled[]={
145 #ifdef DEBUG_ACCEL
147 #else
149 #endif
150 #ifdef DEBUG_BITMAP
152 #else
154 #endif
155 #ifdef DEBUG_CALLBACK
157 #else
159 #endif
160 #ifdef DEBUG_CARET
162 #else
164 #endif
165 #ifdef DEBUG_CATCH
167 #else
169 #endif
170 #ifdef DEBUG_CDAUDIO
172 #else
174 #endif
175 #ifdef DEBUG_CLASS
177 #else
179 #endif
180 #ifdef DEBUG_CLIPBOARD
182 #else
184 #endif
185 #ifdef DEBUG_CLIPPING
187 #else
189 #endif
190 #ifdef DEBUG_COMBO
192 #else
194 #endif
195 #ifdef DEBUG_COMM
197 #else
199 #endif
200 #ifdef DEBUG_CURSOR
202 #else
204 #endif
205 #ifdef DEBUG_DC
207 #else
209 #endif
210 #ifdef DEBUG_DIALOG
212 #else
214 #endif
215 #ifdef DEBUG_DLL
217 #else
219 #endif
220 #ifdef DEBUG_DOSFS
222 #else
224 #endif
225 #ifdef DEBUG_DRIVER
227 #else
229 #endif
230 #ifdef DEBUG_EDIT
232 #else
234 #endif
235 #ifdef DEBUG_ENUM
237 #else
239 #endif
240 #ifdef DEBUG_EVENT
242 #else
244 #endif
245 #ifdef DEBUG_EXEC
247 #else
249 #endif
250 #ifdef DEBUG_FILE
252 #else
254 #endif
255 #ifdef DEBUG_FIXUP
257 #else
259 #endif
260 #ifdef DEBUG_FONT
262 #else
264 #endif
265 #ifdef DEBUG_GDI
267 #else
269 #endif
270 #ifdef DEBUG_GRAPHICS
272 #else
274 #endif
275 #ifdef DEBUG_HEAP
277 #else
279 #endif
280 #ifdef DEBUG_ICON
282 #else
284 #endif
285 #ifdef DEBUG_INT
287 #else
289 #endif
290 #ifdef DEBUG_KEY
292 #else
294 #endif
295 #ifdef DEBUG_KEYBOARD
297 #else
299 #endif
300 #ifdef DEBUG_LDT
302 #else
304 #endif
305 #ifdef DEBUG_LISTBOX
307 #else
309 #endif
310 #ifdef DEBUG_MCI
312 #else
314 #endif
315 #ifdef DEBUG_MCIANIM
317 #else
319 #endif
320 #ifdef DEBUG_MCIWAVE
322 #else
324 #endif
325 #ifdef DEBUG_MDI
327 #else
329 #endif
330 #ifdef DEBUG_MENU
332 #else
334 #endif
335 #ifdef DEBUG_MENUCALC
337 #else
339 #endif
340 #ifdef DEBUG_MESSAGE
342 #else
344 #endif
345 #ifdef DEBUG_METAFILE
347 #else
349 #endif
350 #ifdef DEBUG_MIDI
352 #else
354 #endif
355 #ifdef DEBUG_MMIO
357 #else
359 #endif
360 #ifdef DEBUG_MMTIME
362 #else
364 #endif
365 #ifdef DEBUG_MODULE
367 #else
369 #endif
370 #ifdef DEBUG_MSG
372 #else
374 #endif
375 #ifdef DEBUG_MSGBOX
377 #else
379 #endif
380 #ifdef DEBUG_NONCLIENT
382 #else
384 #endif
385 #ifdef DEBUG_PALETTE
387 #else
389 #endif
390 #ifdef DEBUG_PROFILE
392 #else
394 #endif
395 #ifdef DEBUG_PROP
397 #else
399 #endif
400 #ifdef DEBUG_REG
402 #else
404 #endif
405 #ifdef DEBUG_REGION
407 #else
409 #endif
410 #ifdef DEBUG_RESOURCE
412 #else
414 #endif
415 #ifdef DEBUG_SCROLL
417 #else
419 #endif
420 #ifdef DEBUG_SELECTORS
422 #else
424 #endif
425 #ifdef DEBUG_STRESS
427 #else
429 #endif
430 #ifdef DEBUG_SYSCOLOR
432 #else
434 #endif
435 #ifdef DEBUG_TASK
437 #else
439 #endif
440 #ifdef DEBUG_TEXT
442 #else
444 #endif
445 #ifdef DEBUG_TIMER
447 #else
449 #endif
450 #ifdef DEBUG_UTILITY
452 #else
454 #endif
455 #ifdef DEBUG_WIN
457 #else
459 #endif
460 #ifdef DEBUG_WINSOCK
462 #else
464 #endif
467 #else
468 extern short debug_msg_enabled[];
469 #endif
470 #endif
472 #ifdef DEBUG_RUNTIME
473 #define dprintf_accel if(debug_msg_enabled[0]) fprintf
474 #else
475 #ifdef DEBUG_ACCEL
476 #define dprintf_accel fprintf
477 #else
478 #define dprintf_accel
479 #endif
480 #endif
482 #ifdef DEBUG_RUNTIME
483 #define dprintf_bitmap if(debug_msg_enabled[1]) fprintf
484 #else
485 #ifdef DEBUG_BITMAP
486 #define dprintf_bitmap fprintf
487 #else
488 #define dprintf_bitmap
489 #endif
490 #endif
492 #ifdef DEBUG_RUNTIME
493 #define dprintf_callback if(debug_msg_enabled[2]) fprintf
494 #else
495 #ifdef DEBUG_CALLBACK
496 #define dprintf_callback fprintf
497 #else
498 #define dprintf_callback
499 #endif
500 #endif
502 #ifdef DEBUG_RUNTIME
503 #define dprintf_caret if(debug_msg_enabled[3]) fprintf
504 #else
505 #ifdef DEBUG_CARET
506 #define dprintf_caret fprintf
507 #else
508 #define dprintf_caret
509 #endif
510 #endif
512 #ifdef DEBUG_RUNTIME
513 #define dprintf_catch if(debug_msg_enabled[4]) fprintf
514 #else
515 #ifdef DEBUG_CATCH
516 #define dprintf_catch fprintf
517 #else
518 #define dprintf_catch
519 #endif
520 #endif
522 #ifdef DEBUG_RUNTIME
523 #define dprintf_cdaudio if(debug_msg_enabled[5]) fprintf
524 #else
525 #ifdef DEBUG_CDAUDIO
526 #define dprintf_cdaudio fprintf
527 #else
528 #define dprintf_cdaudio
529 #endif
530 #endif
532 #ifdef DEBUG_RUNTIME
533 #define dprintf_class if(debug_msg_enabled[6]) fprintf
534 #else
535 #ifdef DEBUG_CLASS
536 #define dprintf_class fprintf
537 #else
538 #define dprintf_class
539 #endif
540 #endif
542 #ifdef DEBUG_RUNTIME
543 #define dprintf_clipboard if(debug_msg_enabled[7]) fprintf
544 #else
545 #ifdef DEBUG_CLIPBOARD
546 #define dprintf_clipboard fprintf
547 #else
548 #define dprintf_clipboard
549 #endif
550 #endif
552 #ifdef DEBUG_RUNTIME
553 #define dprintf_clipping if(debug_msg_enabled[8]) fprintf
554 #else
555 #ifdef DEBUG_CLIPPING
556 #define dprintf_clipping fprintf
557 #else
558 #define dprintf_clipping
559 #endif
560 #endif
562 #ifdef DEBUG_RUNTIME
563 #define dprintf_combo if(debug_msg_enabled[9]) fprintf
564 #else
565 #ifdef DEBUG_COMBO
566 #define dprintf_combo fprintf
567 #else
568 #define dprintf_combo
569 #endif
570 #endif
572 #ifdef DEBUG_RUNTIME
573 #define dprintf_comm if(debug_msg_enabled[10]) fprintf
574 #else
575 #ifdef DEBUG_COMM
576 #define dprintf_comm fprintf
577 #else
578 #define dprintf_comm
579 #endif
580 #endif
582 #ifdef DEBUG_RUNTIME
583 #define dprintf_cursor if(debug_msg_enabled[11]) fprintf
584 #else
585 #ifdef DEBUG_CURSOR
586 #define dprintf_cursor fprintf
587 #else
588 #define dprintf_cursor
589 #endif
590 #endif
592 #ifdef DEBUG_RUNTIME
593 #define dprintf_dc if(debug_msg_enabled[12]) fprintf
594 #else
595 #ifdef DEBUG_DC
596 #define dprintf_dc fprintf
597 #else
598 #define dprintf_dc
599 #endif
600 #endif
602 #ifdef DEBUG_RUNTIME
603 #define dprintf_dialog if(debug_msg_enabled[13]) fprintf
604 #else
605 #ifdef DEBUG_DIALOG
606 #define dprintf_dialog fprintf
607 #else
608 #define dprintf_dialog
609 #endif
610 #endif
612 #ifdef DEBUG_RUNTIME
613 #define dprintf_dll if(debug_msg_enabled[14]) fprintf
614 #else
615 #ifdef DEBUG_DLL
616 #define dprintf_dll fprintf
617 #else
618 #define dprintf_dll
619 #endif
620 #endif
622 #ifdef DEBUG_RUNTIME
623 #define dprintf_dosfs if(debug_msg_enabled[15]) fprintf
624 #else
625 #ifdef DEBUG_DOSFS
626 #define dprintf_dosfs fprintf
627 #else
628 #define dprintf_dosfs
629 #endif
630 #endif
632 #ifdef DEBUG_RUNTIME
633 #define dprintf_driver if(debug_msg_enabled[16]) fprintf
634 #else
635 #ifdef DEBUG_DRIVER
636 #define dprintf_driver fprintf
637 #else
638 #define dprintf_driver
639 #endif
640 #endif
642 #ifdef DEBUG_RUNTIME
643 #define dprintf_edit if(debug_msg_enabled[17]) fprintf
644 #else
645 #ifdef DEBUG_EDIT
646 #define dprintf_edit fprintf
647 #else
648 #define dprintf_edit
649 #endif
650 #endif
652 #ifdef DEBUG_RUNTIME
653 #define dprintf_enum if(debug_msg_enabled[18]) fprintf
654 #else
655 #ifdef DEBUG_ENUM
656 #define dprintf_enum fprintf
657 #else
658 #define dprintf_enum
659 #endif
660 #endif
662 #ifdef DEBUG_RUNTIME
663 #define dprintf_event if(debug_msg_enabled[19]) fprintf
664 #else
665 #ifdef DEBUG_EVENT
666 #define dprintf_event fprintf
667 #else
668 #define dprintf_event
669 #endif
670 #endif
672 #ifdef DEBUG_RUNTIME
673 #define dprintf_exec if(debug_msg_enabled[20]) fprintf
674 #else
675 #ifdef DEBUG_EXEC
676 #define dprintf_exec fprintf
677 #else
678 #define dprintf_exec
679 #endif
680 #endif
682 #ifdef DEBUG_RUNTIME
683 #define dprintf_file if(debug_msg_enabled[21]) fprintf
684 #else
685 #ifdef DEBUG_FILE
686 #define dprintf_file fprintf
687 #else
688 #define dprintf_file
689 #endif
690 #endif
692 #ifdef DEBUG_RUNTIME
693 #define dprintf_fixup if(debug_msg_enabled[22]) fprintf
694 #else
695 #ifdef DEBUG_FIXUP
696 #define dprintf_fixup fprintf
697 #else
698 #define dprintf_fixup
699 #endif
700 #endif
702 #ifdef DEBUG_RUNTIME
703 #define dprintf_font if(debug_msg_enabled[23]) fprintf
704 #else
705 #ifdef DEBUG_FONT
706 #define dprintf_font fprintf
707 #else
708 #define dprintf_font
709 #endif
710 #endif
712 #ifdef DEBUG_RUNTIME
713 #define dprintf_gdi if(debug_msg_enabled[24]) fprintf
714 #else
715 #ifdef DEBUG_GDI
716 #define dprintf_gdi fprintf
717 #else
718 #define dprintf_gdi
719 #endif
720 #endif
722 #ifdef DEBUG_RUNTIME
723 #define dprintf_graphics if(debug_msg_enabled[25]) fprintf
724 #else
725 #ifdef DEBUG_GRAPHICS
726 #define dprintf_graphics fprintf
727 #else
728 #define dprintf_graphics
729 #endif
730 #endif
732 #ifdef DEBUG_RUNTIME
733 #define dprintf_heap if(debug_msg_enabled[26]) fprintf
734 #else
735 #ifdef DEBUG_HEAP
736 #define dprintf_heap fprintf
737 #else
738 #define dprintf_heap
739 #endif
740 #endif
742 #ifdef DEBUG_RUNTIME
743 #define dprintf_icon if(debug_msg_enabled[27]) fprintf
744 #else
745 #ifdef DEBUG_ICON
746 #define dprintf_icon fprintf
747 #else
748 #define dprintf_icon
749 #endif
750 #endif
752 #ifdef DEBUG_RUNTIME
753 #define dprintf_int if(debug_msg_enabled[28]) fprintf
754 #else
755 #ifdef DEBUG_INT
756 #define dprintf_int fprintf
757 #else
758 #define dprintf_int
759 #endif
760 #endif
762 #ifdef DEBUG_RUNTIME
763 #define dprintf_key if(debug_msg_enabled[29]) fprintf
764 #else
765 #ifdef DEBUG_KEY
766 #define dprintf_key fprintf
767 #else
768 #define dprintf_key
769 #endif
770 #endif
772 #ifdef DEBUG_RUNTIME
773 #define dprintf_keyboard if(debug_msg_enabled[30]) fprintf
774 #else
775 #ifdef DEBUG_KEYBOARD
776 #define dprintf_keyboard fprintf
777 #else
778 #define dprintf_keyboard
779 #endif
780 #endif
782 #ifdef DEBUG_RUNTIME
783 #define dprintf_ldt if(debug_msg_enabled[31]) fprintf
784 #else
785 #ifdef DEBUG_LDT
786 #define dprintf_ldt fprintf
787 #else
788 #define dprintf_ldt
789 #endif
790 #endif
792 #ifdef DEBUG_RUNTIME
793 #define dprintf_listbox if(debug_msg_enabled[32]) fprintf
794 #else
795 #ifdef DEBUG_LISTBOX
796 #define dprintf_listbox fprintf
797 #else
798 #define dprintf_listbox
799 #endif
800 #endif
802 #ifdef DEBUG_RUNTIME
803 #define dprintf_mci if(debug_msg_enabled[33]) fprintf
804 #else
805 #ifdef DEBUG_MCI
806 #define dprintf_mci fprintf
807 #else
808 #define dprintf_mci
809 #endif
810 #endif
812 #ifdef DEBUG_RUNTIME
813 #define dprintf_mcianim if(debug_msg_enabled[34]) fprintf
814 #else
815 #ifdef DEBUG_MCIANIM
816 #define dprintf_mcianim fprintf
817 #else
818 #define dprintf_mcianim
819 #endif
820 #endif
822 #ifdef DEBUG_RUNTIME
823 #define dprintf_mciwave if(debug_msg_enabled[35]) fprintf
824 #else
825 #ifdef DEBUG_MCIWAVE
826 #define dprintf_mciwave fprintf
827 #else
828 #define dprintf_mciwave
829 #endif
830 #endif
832 #ifdef DEBUG_RUNTIME
833 #define dprintf_mdi if(debug_msg_enabled[36]) fprintf
834 #else
835 #ifdef DEBUG_MDI
836 #define dprintf_mdi fprintf
837 #else
838 #define dprintf_mdi
839 #endif
840 #endif
842 #ifdef DEBUG_RUNTIME
843 #define dprintf_menu if(debug_msg_enabled[37]) fprintf
844 #else
845 #ifdef DEBUG_MENU
846 #define dprintf_menu fprintf
847 #else
848 #define dprintf_menu
849 #endif
850 #endif
852 #ifdef DEBUG_RUNTIME
853 #define dprintf_menucalc if(debug_msg_enabled[38]) fprintf
854 #else
855 #ifdef DEBUG_MENUCALC
856 #define dprintf_menucalc fprintf
857 #else
858 #define dprintf_menucalc
859 #endif
860 #endif
862 #ifdef DEBUG_RUNTIME
863 #define dprintf_message if(debug_msg_enabled[39]) fprintf
864 #else
865 #ifdef DEBUG_MESSAGE
866 #define dprintf_message fprintf
867 #else
868 #define dprintf_message
869 #endif
870 #endif
872 #ifdef DEBUG_RUNTIME
873 #define dprintf_metafile if(debug_msg_enabled[40]) fprintf
874 #else
875 #ifdef DEBUG_METAFILE
876 #define dprintf_metafile fprintf
877 #else
878 #define dprintf_metafile
879 #endif
880 #endif
882 #ifdef DEBUG_RUNTIME
883 #define dprintf_midi if(debug_msg_enabled[41]) fprintf
884 #else
885 #ifdef DEBUG_MIDI
886 #define dprintf_midi fprintf
887 #else
888 #define dprintf_midi
889 #endif
890 #endif
892 #ifdef DEBUG_RUNTIME
893 #define dprintf_mmio if(debug_msg_enabled[42]) fprintf
894 #else
895 #ifdef DEBUG_MMIO
896 #define dprintf_mmio fprintf
897 #else
898 #define dprintf_mmio
899 #endif
900 #endif
902 #ifdef DEBUG_RUNTIME
903 #define dprintf_mmtime if(debug_msg_enabled[43]) fprintf
904 #else
905 #ifdef DEBUG_MMTIME
906 #define dprintf_mmtime fprintf
907 #else
908 #define dprintf_mmtime
909 #endif
910 #endif
912 #ifdef DEBUG_RUNTIME
913 #define dprintf_module if(debug_msg_enabled[44]) fprintf
914 #else
915 #ifdef DEBUG_MODULE
916 #define dprintf_module fprintf
917 #else
918 #define dprintf_module
919 #endif
920 #endif
922 #ifdef DEBUG_RUNTIME
923 #define dprintf_msg if(debug_msg_enabled[45]) fprintf
924 #else
925 #ifdef DEBUG_MSG
926 #define dprintf_msg fprintf
927 #else
928 #define dprintf_msg
929 #endif
930 #endif
932 #ifdef DEBUG_RUNTIME
933 #define dprintf_msgbox if(debug_msg_enabled[46]) fprintf
934 #else
935 #ifdef DEBUG_MSGBOX
936 #define dprintf_msgbox fprintf
937 #else
938 #define dprintf_msgbox
939 #endif
940 #endif
942 #ifdef DEBUG_RUNTIME
943 #define dprintf_nonclient if(debug_msg_enabled[47]) fprintf
944 #else
945 #ifdef DEBUG_NONCLIENT
946 #define dprintf_nonclient fprintf
947 #else
948 #define dprintf_nonclient
949 #endif
950 #endif
952 #ifdef DEBUG_RUNTIME
953 #define dprintf_palette if(debug_msg_enabled[48]) fprintf
954 #else
955 #ifdef DEBUG_PALETTE
956 #define dprintf_palette fprintf
957 #else
958 #define dprintf_palette
959 #endif
960 #endif
962 #ifdef DEBUG_RUNTIME
963 #define dprintf_profile if(debug_msg_enabled[49]) fprintf
964 #else
965 #ifdef DEBUG_PROFILE
966 #define dprintf_profile fprintf
967 #else
968 #define dprintf_profile
969 #endif
970 #endif
972 #ifdef DEBUG_RUNTIME
973 #define dprintf_prop if(debug_msg_enabled[50]) fprintf
974 #else
975 #ifdef DEBUG_PROP
976 #define dprintf_prop fprintf
977 #else
978 #define dprintf_prop
979 #endif
980 #endif
982 #ifdef DEBUG_RUNTIME
983 #define dprintf_reg if(debug_msg_enabled[51]) fprintf
984 #else
985 #ifdef DEBUG_REG
986 #define dprintf_reg fprintf
987 #else
988 #define dprintf_reg
989 #endif
990 #endif
992 #ifdef DEBUG_RUNTIME
993 #define dprintf_region if(debug_msg_enabled[52]) fprintf
994 #else
995 #ifdef DEBUG_REGION
996 #define dprintf_region fprintf
997 #else
998 #define dprintf_region
999 #endif
1000 #endif
1002 #ifdef DEBUG_RUNTIME
1003 #define dprintf_resource if(debug_msg_enabled[53]) fprintf
1004 #else
1005 #ifdef DEBUG_RESOURCE
1006 #define dprintf_resource fprintf
1007 #else
1008 #define dprintf_resource
1009 #endif
1010 #endif
1012 #ifdef DEBUG_RUNTIME
1013 #define dprintf_scroll if(debug_msg_enabled[54]) fprintf
1014 #else
1015 #ifdef DEBUG_SCROLL
1016 #define dprintf_scroll fprintf
1017 #else
1018 #define dprintf_scroll
1019 #endif
1020 #endif
1022 #ifdef DEBUG_RUNTIME
1023 #define dprintf_selectors if(debug_msg_enabled[55]) fprintf
1024 #else
1025 #ifdef DEBUG_SELECTORS
1026 #define dprintf_selectors fprintf
1027 #else
1028 #define dprintf_selectors
1029 #endif
1030 #endif
1032 #ifdef DEBUG_RUNTIME
1033 #define dprintf_stress if(debug_msg_enabled[56]) fprintf
1034 #else
1035 #ifdef DEBUG_STRESS
1036 #define dprintf_stress fprintf
1037 #else
1038 #define dprintf_stress
1039 #endif
1040 #endif
1042 #ifdef DEBUG_RUNTIME
1043 #define dprintf_syscolor if(debug_msg_enabled[57]) fprintf
1044 #else
1045 #ifdef DEBUG_SYSCOLOR
1046 #define dprintf_syscolor fprintf
1047 #else
1048 #define dprintf_syscolor
1049 #endif
1050 #endif
1052 #ifdef DEBUG_RUNTIME
1053 #define dprintf_task if(debug_msg_enabled[58]) fprintf
1054 #else
1055 #ifdef DEBUG_TASK
1056 #define dprintf_task fprintf
1057 #else
1058 #define dprintf_task
1059 #endif
1060 #endif
1062 #ifdef DEBUG_RUNTIME
1063 #define dprintf_text if(debug_msg_enabled[59]) fprintf
1064 #else
1065 #ifdef DEBUG_TEXT
1066 #define dprintf_text fprintf
1067 #else
1068 #define dprintf_text
1069 #endif
1070 #endif
1072 #ifdef DEBUG_RUNTIME
1073 #define dprintf_timer if(debug_msg_enabled[60]) fprintf
1074 #else
1075 #ifdef DEBUG_TIMER
1076 #define dprintf_timer fprintf
1077 #else
1078 #define dprintf_timer
1079 #endif
1080 #endif
1082 #ifdef DEBUG_RUNTIME
1083 #define dprintf_utility if(debug_msg_enabled[61]) fprintf
1084 #else
1085 #ifdef DEBUG_UTILITY
1086 #define dprintf_utility fprintf
1087 #else
1088 #define dprintf_utility
1089 #endif
1090 #endif
1092 #ifdef DEBUG_RUNTIME
1093 #define dprintf_win if(debug_msg_enabled[62]) fprintf
1094 #else
1095 #ifdef DEBUG_WIN
1096 #define dprintf_win fprintf
1097 #else
1098 #define dprintf_win
1099 #endif
1100 #endif
1102 #ifdef DEBUG_RUNTIME
1103 #define dprintf_winsock if(debug_msg_enabled[63]) fprintf
1104 #else
1105 #ifdef DEBUG_WINSOCK
1106 #define dprintf_winsock fprintf
1107 #else
1108 #define dprintf_winsock
1109 #endif
1110 #endif
1113 #ifdef DEBUG_RUNTIME
1114 #ifdef DEBUG_DEFINE_VARIABLES
1115 static char *debug_msg_name[] = {
1116 "accel",
1117 "bitmap",
1118 "callback",
1119 "caret",
1120 "catch",
1121 "cdaudio",
1122 "class",
1123 "clipboard",
1124 "clipping",
1125 "combo",
1126 "comm",
1127 "cursor",
1128 "dc",
1129 "dialog",
1130 "dll",
1131 "dosfs",
1132 "driver",
1133 "edit",
1134 "enum",
1135 "event",
1136 "exec",
1137 "file",
1138 "fixup",
1139 "font",
1140 "gdi",
1141 "graphics",
1142 "heap",
1143 "icon",
1144 "int",
1145 "key",
1146 "keyboard",
1147 "ldt",
1148 "listbox",
1149 "mci",
1150 "mcianim",
1151 "mciwave",
1152 "mdi",
1153 "menu",
1154 "menucalc",
1155 "message",
1156 "metafile",
1157 "midi",
1158 "mmio",
1159 "mmtime",
1160 "module",
1161 "msg",
1162 "msgbox",
1163 "nonclient",
1164 "palette",
1165 "profile",
1166 "prop",
1167 "reg",
1168 "region",
1169 "resource",
1170 "scroll",
1171 "selectors",
1172 "stress",
1173 "syscolor",
1174 "task",
1175 "text",
1176 "timer",
1177 "utility",
1178 "win",
1179 "winsock",
1182 #endif
1183 #endif