lilypond-0.1.57
[lilypond.git] / flower / flower-debug.cc
blobf3131c8254f8f287dfa53df7c0ad5189515cc78d
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. Compiled with NPRINT.") << endl;
18 #endif
20 flower_check_debug = b;
21 flower_dstream = &ds;