From 764a205fe9676afcdb94998b5e553d650bda86ba Mon Sep 17 00:00:00 2001 From: Anastasis Grammenos Date: Thu, 4 Oct 2018 17:20:37 +0300 Subject: Errlog with cklist, verbose flag, bugfix in search --- src/ckerrlog.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/ckerrlog.h') diff --git a/src/ckerrlog.h b/src/ckerrlog.h index be5257d..d3d7243 100644 --- a/src/ckerrlog.h +++ b/src/ckerrlog.h @@ -25,6 +25,8 @@ void ckerr_add_component(char *txt, ...); extern void initialize_errlog(); extern void report_errlog(); +extern void errlog_set_verbose(int level); + extern void ckerr(char *err, ...); extern void cklog(char *log, ...); extern void ckhelp(char *log, ...); @@ -35,8 +37,12 @@ extern void report_help(); /* Macros */ /**********/ +/* define the component's name */ +#define ERRLOG(_COMPONENT) \ + static const char COMPONENT[STR_S] = #_COMPONENT + #define ERR(...) \ - ckerr_add_component("Error in [%s]:", COMPONENT); \ + ckerr("Error in [%s]:", COMPONENT); \ ckerr(__VA_ARGS__); \ report_err(); -- cgit v1.2.3