]> git.donarmstrong.com Git - lilypond.git/blob - flower/flower-debug.cc
86a9abb9f069f0a8fbbdde56e1290f3515358638
[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