more 0.98.15-like timing, but sound glitches
[fceu.git] / dprintf.h
diff --git a/dprintf.h b/dprintf.h
new file mode 100644 (file)
index 0000000..01d56d7
--- /dev/null
+++ b/dprintf.h
@@ -0,0 +1,16 @@
+#if 0
+#include <stdio.h>
+
+extern uint32 timestamp;
+extern uint32 framecount;
+extern int scanline;
+
+#undef dprintf
+#define dprintf(f,...) printf("%05u:%05u:%03i: " f "\n",timestamp,framecount,scanline,##__VA_ARGS__)
+
+#else
+
+#define dprintf(x...)
+
+#endif
+