]> git.donarmstrong.com Git - lilypond.git/blob - debug.cc
release: 0.0.2
[lilypond.git] / debug.cc
1 #include "debug.hh"
2 #include "dstream.hh"
3 int debug_flags;
4
5 void
6 set_debug(String s)
7 {
8     if (s.pos ('t')) {
9         debug_flags |= DEBUGTOKEN;
10         mtor << " Turning on token debug\n";
11     }
12     if (s.pos ('p')){
13         debug_flags |= DEBUGPARSER;
14         mtor << "Turning on parser debugger\n";
15     }
16 }
17
18 Dstream monitor(cout,".dstreamrc");