]> git.donarmstrong.com Git - lilypond.git/blob - mi2mu/include/midi-global.hh
0e8644376dac424ec2228e54f0b14289d3b34223
[lilypond.git] / mi2mu / include / midi-global.hh
1 //
2 // midi-global.hh -- declare global (sic) stuff for mi2mu
3 //
4 // copyright 1997 Jan Nieuwenhuizen <jan@digicash.com>
5
6 #ifndef MIDI_GLOBAL_HH
7 #define MIDI_GLOBAL_HH
8
9 #include "string.hh"
10
11 #define monitor_p_g &cout
12 enum Verbose { QUIET_ver, BRIEF_ver, NORMAL_ver, VERBOSE_ver, DEBUG_ver };
13 extern Verbose level_ver;
14 #ifdef NPRINT
15 #define dtor if ( 0 ) *monitor_p_g
16 #define mtor if ( 0 ) *monitor_p_g
17 #else
18 #define dtor if ( level_ver >= DEBUG_ver ) *monitor_p_g
19 #define vtor if ( level_ver >= VERBOSE_ver ) *monitor_p_g
20 #define mtor if ( level_ver >= NORMAL_ver ) *monitor_p_g
21 #define btor if ( level_ver >= BRIEF_ver ) *monitor_p_g
22 #define qtor if ( level_ver >= QUIET_ver ) *monitor_p_g
23 #endif
24
25 extern Source* source_l_g;
26 void message( String message_str, char const* context_ch_c_l );
27 void warning( String message_str, char const* context_ch_c_l );
28 void error( String message_str, char const* context_ch_c_l );
29
30 String version_str();
31
32 #endif // MIDI_GLOBAL_HH
33