flower-1.0.2
[lilypond.git] / debug.hh
blobae75b77fa142dd32d6cd6c6e2e3a732a229e0f80
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 monitor; // monitor
14 #define mtor monitor.identify_as(__PRETTY_FUNCTION__)
16 void error(String s);
17 void warning(String s);
19 extern int debug_flags;
21 void
22 set_debug(String s);
23 const int DEBUGPARSER = 0x01;
24 const int DEBUGTOKEN = 0x02;
25 const int DEBUGITEMS = 0x04;
27 #endif