Debian Codegraph @

src/Logging.h

raw
1 #ifndef FREEBAYES_LOGGING_H
2 #define FREEBAYES_LOGGING_H
3
4 // helper debugging macros to improve code readability
5 #define DEBUG(msg) \
6 if (parameters.debug) { cerr << msg << endl; }
7
8 // lower-priority messages, enabled with "make debug"
9 #ifdef VERBOSE_DEBUG
10 #define DEBUG2(msg) \
11 if (parameters.debug2) { cerr << msg << endl; }
12 #else
13 #define DEBUG2(msg)
14 #endif
15
16 // must-see error messages
17 #define ERROR(msg) \
18 cerr << "ERROR(freebayes): " << msg << endl;
19
20 // must-see warning messages
21 #define WARNING(msg) \
22 cerr << "WARNING(freebayes): " << msg << endl;
23
24 #endif