]> git.donarmstrong.com Git - lilypond.git/blob - m2m/include/midi-global.hh
4d499daf0ad32607c36b7e7e6a9a13b6525235ee
[lilypond.git] / m2m / include / midi-global.hh
1 //
2 // midi-global.hh -- declare global (sic) stuff for m2m
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 extern bool no_triplets_bo_g;
27 void message( String message_str, char const* context_ch_c_l );
28 void warning( String message_str, char const* context_ch_c_l );
29 void error( String message_str, char const* context_ch_c_l );
30
31 String version_str();
32
33 #endif // MIDI_GLOBAL_HH
34