]> git.donarmstrong.com Git - lilypond.git/blob - flower/flower-debug.cc
release: 0.0.72pre
[lilypond.git] / flower / flower-debug.cc
1 #include <fstream.h>
2 #include "flower-debug.hh"
3 #include "dstream.hh"
4
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;
9
10 /**
11   Set the debugging output. Will not delete/swallow argument.
12  */
13 void set_flower_debug(Dstream&ds, bool b)
14 {
15 #ifdef NPRINT
16     if (b)
17         cout << "Debug printout disabled, see the installation guide." << endl;
18 #endif
19     flower_check_debug = b;
20     flower_dstream = &ds;
21 }
22