]> git.donarmstrong.com Git - lilypond.git/blob - debug.hh
fb3a07059392048105261d69eae1ae65da4d1410
[lilypond.git] / debug.hh
1 #ifndef DEBUG_HH
2 #define DEBUG_HH
3 #include <assert.h>
4 #include <iostream.h>
5 #include "dstream.hh"
6
7 void error(String s);           // errors
8
9 // warnings
10 void warning(String s);
11 #define WARN warnout << "warning: "<<__FUNCTION__ << "(): "
12 extern ostream &warnout ;
13
14 // progress
15 extern ostream *mlog;
16
17 // debugging
18 extern Dstream monitor; // monitor
19
20 #ifdef NPRINT
21 #define mtor if (0) monitor     // clever hack 
22 #else
23 #define mtor monitor.identify_as(__PRETTY_FUNCTION__)
24 #endif
25
26
27
28 #endif