lilypond-0.0.1
[lilypond.git] / debug.hh
blobfce60a98165b5a744efc9ed678cef1002d4e7cb1
1 #ifndef DEBUG_HH
2 #define DEBUG_HH
3 #include <assert.h>
4 #include <iostream.h>
5 #include "dstream.hh"
9 #define WARN warnout << "warning: "<<__FUNCTION__ << ": "
10 extern ostream &warnout ;
11 extern ostream *mlog;
12 extern dstream mtor; // monitor
14 void error(String s);
15 void warning(String s);
17 extern int debug_flags;
19 void
20 set_debug(String s);
21 const int DEBUGPARSER = 0x01;
22 const int DEBUGTOKEN = 0x02;
23 const int DEBUGITEMS = 0x04;
25 #endif