]> git.donarmstrong.com Git - lilypond.git/blob - flower/flower-debug.cc
52156f983a86f0da23d94caa82cd3f7b8b36f45d
[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   
20   flower_check_debug = b;
21   flower_dstream = &ds;
22 }
23