/* $Header: /CVSROOT/tinolib/old/debug.h,v 1.2 2004/04/06 04:41:37 tino Exp $ * * If you include this, you know what you are doing. * * $Log: debug.h,v $ * Revision 1.2 2004/04/06 04:41:37 tino * xml reader * * Revision 1.1 2004/03/28 01:24:14 tino * some more stuff * */ #ifndef tino_INC_debug_h #define tino_INC_debug_h #include #include #define DP(X) do { tino_debugprintf X; } while (0) #define xDP(X) do { ; } while (0) static void tino_debugprintf(const char *s, ...) { va_list list; fflush(stdout); fprintf(stderr, "["); va_start(list, s); vfprintf(stderr, s, list); va_end(list); fprintf(stderr, "]\n"); fflush(stderr); } #endif