Commit | Line | Data |
---|---|---|
bc97a989 LM |
1 | #ifndef __DEBUG_H__ |
2 | #define __DEBUG_H__ | |
3 | ||
4 | /* constants */ | |
5 | ||
6 | #define DEBUG 3 | |
7 | #define INFO 2 | |
8 | #define WARNING 1 | |
9 | #define ERROR 0 | |
10 | ||
11 | /* macros */ | |
12 | ||
13 | #define VERBOSE(level, statement...) do { if (level <= verbose) { statement; } } while(0) | |
14 | ||
15 | /* gobal variables */ | |
16 | ||
17 | extern int verbose; | |
18 | ||
19 | #endif /* __DEBUG_H__ */ | |
20 | ||
21 | /* vim: set ts=4 sw=4 et */ |