aboutsummaryrefslogtreecommitdiffstats
path: root/src/ckerrlog.h
diff options
context:
space:
mode:
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();