]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.1
authorfred <fred>
Thu, 12 Sep 1996 22:25:40 +0000 (22:25 +0000)
committerfred <fred>
Thu, 12 Sep 1996 22:25:40 +0000 (22:25 +0000)
debug.cc [new file with mode: 0644]

diff --git a/debug.cc b/debug.cc
new file mode 100644 (file)
index 0000000..548a76c
--- /dev/null
+++ b/debug.cc
@@ -0,0 +1,15 @@
+#include "debug.hh"
+int debug_flags;
+
+void
+set_debug(String s)
+{
+    if (s.pos ('t')) {
+       debug_flags |= DEBUGTOKEN;
+       mtor << " Turning on token debug\n";
+    }
+    if (s.pos ('p')){
+       debug_flags |= DEBUGPARSER;
+       mtor << "Turning on parser debugger\n";
+    }
+}