common code: Add feature to select debug category rather than showing all

This commit is contained in:
Andreas Eversberg
2016-06-12 10:50:55 +02:00
parent 051cc81b13
commit 7cfd11eb17
3 changed files with 81 additions and 8 deletions

View File

@@ -15,11 +15,15 @@
#define DCALL 8
#define DMNCC 9
#define DDB 10
#define DTRANS 11
#define PDEBUG(cat, level, fmt, arg...) _printdebug(__FILE__, __FUNCTION__, __LINE__, cat, level, fmt, ## arg)
void _printdebug(const char *file, const char *function, int line, int cat, int level, const char *fmt, ...);
const char *debug_amplitude(double level);
void debug_list_cat(void);
int parse_debug_opt(const char *opt);
extern int debuglevel;