1 /* 2 * xtrojka (c) 1994,1995,1996 Maarten Los 3 * 4 * #include "COPYRIGHT" 5 * 6 * created: 26.xi.1995 7 * modified: 8 * 9 * This module is used for displaying debug information 10 */ 11 12 #ifndef _debug_h_ 13 #define _debug_h_ 14 15 16 #ifdef DEBUG_INFO 17 18 #include <stdio.h> 19 #include "xtrojka.h" 20 21 extern flag is_debug_info; 22 23 #define DEBUG(s1,s2) if(is_debug_info) { \ 24 fprintf(stderr,"DEBUG: %s: %s\n", s1, s2); \ 25 fflush(stderr); } 26 27 #else 28 29 #define DEBUG(s1,s2) ; 30 31 #endif /* DEBUG_INFO */ 32 33 #endif /* _debug_h_ */ 34