aboutsummaryrefslogtreecommitdiffstats
path: root/src/ckerrlog.h
diff options
context:
space:
mode:
authorAnastasis Grammenos <anastasis.gramm2@gmail.com>2018-10-04 17:20:37 +0300
committerAnastasis Grammenos <anastasis.gramm2@gmail.com>2018-10-04 17:20:37 +0300
commit764a205fe9676afcdb94998b5e553d650bda86ba (patch)
treed3d0650a60218e6a470a7a9d9e0bfbf9860a8833 /src/ckerrlog.h
parent9c24e438b689af042672182f6d87f824ef435492 (diff)
downloadck-764a205fe9676afcdb94998b5e553d650bda86ba.tar.gz
ck-764a205fe9676afcdb94998b5e553d650bda86ba.tar.bz2
ck-764a205fe9676afcdb94998b5e553d650bda86ba.zip
Errlog with cklist, verbose flag, bugfix in search
Diffstat (limited to 'src/ckerrlog.h')
-rw-r--r--src/ckerrlog.h8
1 files changed, 7 insertions, 1 deletions
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();