00001 #ifndef DEBUG_H 00002 #define DEBUG_H 00003 00004 #include <stdio.h> 00005 #include <stdarg.h> 00006 00007 inline void debugmsg( const char* fmt, ... ) 00008 { 00009 #ifndef NDEBUG 00010 va_list ap; 00011 va_start(ap, fmt); 00012 vfprintf( stdout, fmt, ap ); 00013 va_end(ap); 00014 #endif /* NDEBUG */ 00015 } 00016 00017 #endif