SpectMorph
smdebug.hh
1 // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl-2.1.html
2 
3 #ifndef SPECTMORPH_DEBUG_HH
4 #define SPECTMORPH_DEBUG_HH
5 
6 #include <string>
7 
8 #include "smutils.hh"
9 
10 namespace SpectMorph
11 {
12 
13 namespace Debug
14 {
15 
16 void debug (const char *area, const char *fmt, ...) SPECTMORPH_PRINTF (2, 3);
17 void enable (const std::string& area);
18 void set_filename (const std::string& filename);
19 bool enabled (const std::string& area);
20 
21 }
22 
23 // simple debugging function on "global" area
24 void sm_debug (const char *fmt, ...) SPECTMORPH_PRINTF (1, 2);
25 
26 }
27 
28 #endif