]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.9
authorfred <fred>
Sat, 2 Nov 1996 01:00:52 +0000 (01:00 +0000)
committerfred <fred>
Sat, 2 Nov 1996 01:00:52 +0000 (01:00 +0000)
hdr/debug.hh [new file with mode: 0644]

diff --git a/hdr/debug.hh b/hdr/debug.hh
new file mode 100644 (file)
index 0000000..fb3a070
--- /dev/null
@@ -0,0 +1,28 @@
+#ifndef DEBUG_HH
+#define DEBUG_HH
+#include <assert.h>
+#include <iostream.h>
+#include "dstream.hh"
+
+void error(String s);          // errors
+
+// warnings
+void warning(String s);
+#define WARN warnout << "warning: "<<__FUNCTION__ << "(): "
+extern ostream &warnout ;
+
+// progress
+extern ostream *mlog;
+
+// debugging
+extern Dstream monitor; // monitor
+
+#ifdef NPRINT
+#define mtor if (0) monitor    // clever hack 
+#else
+#define mtor monitor.identify_as(__PRETTY_FUNCTION__)
+#endif
+
+
+
+#endif