lilypond-0.1.37
[lilypond.git] / flower / flower-debug.cc
blob5728b8a95c84695a014c1d397f312254bd2a3c88
1 #include <fstream.h>
2 #include "flower-debug.hh"
3 #include "dstream.hh"
5 bool flower_check_debug=false;
6 ofstream null_device ("/dev/null");
7 Dstream default_flower_stream (&null_device ,"/dev/null");
8 Dstream *flower_dstream = &default_flower_stream;
10 /**
11 Set the debugging output. Will not delete/swallow argument.
13 void set_flower_debug (Dstream&ds, bool b)
15 #ifdef NPRINT
16 if (b)
17 cout << _("Debug printout disabled, see the installation guide.") << endl;
18 #endif
20 flower_check_debug = b;
21 flower_dstream = &ds;