]> git.donarmstrong.com Git - lilypond.git/blob - flower/include/flower-debug.hh
5c8138e94625e438c288302e3bdcd2908f6179c1
[lilypond.git] / flower / include / flower-debug.hh
1 /*
2   flower-debug.hh -- declare global constants relating to debug dumps
3
4   source file of the Flower Library
5
6   (c)  1997--1998 Han-Wen Nienhuys <hanwen@stack.nl>
7 */
8
9
10 #ifndef FLOWER_DEBUG_HH
11 #define FLOWER_DEBUG_HH
12
13 #include "dstream.hh"
14
15 extern Dstream *flower_dstream;
16 extern bool flower_check_debug;
17 #ifdef NPRINT
18 #define fdebug if (0) *flower_dstream
19 #else
20 #define fdebug if (flower_check_debug) \
21         flower_dstream->identify_as (__PRETTY_FUNCTION__)
22 #endif
23 void set_flower_debug (Dstream&ds, bool);
24
25 #endif // FLOWER_DEBUG_HH