summaryrefslogtreecommitdiff
path: root/src/common/showmsg.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/showmsg.h')
-rw-r--r--src/common/showmsg.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/common/showmsg.h b/src/common/showmsg.h
index 59bd6a090..2d40255fb 100644
--- a/src/common/showmsg.h
+++ b/src/common/showmsg.h
@@ -1,6 +1,9 @@
#ifndef _SHOWMSG_H_
#define _SHOWMSG_H_
+//davidsiaw, 'lookee' here!
+#define SHOW_DEBUG_MSG 1
+
#define CL_RESET "\033[0;0m"
#define CL_NORMAL CL_RESET
#define CL_NONE CL_RESET
@@ -15,7 +18,7 @@
extern char tmp_output[1024];
-enum msg_type {MSG_STATUS,/* MSG_SQL, */MSG_INFORMATION,MSG_NOTICE,MSG_WARNING,MSG_ERROR,MSG_FATALERROR};
+enum msg_type {MSG_STATUS,/* MSG_SQL, */MSG_INFORMATION,MSG_NOTICE,MSG_WARNING,MSG_DEBUG,MSG_ERROR,MSG_FATALERROR};
extern int _ShowMessage(const char *string, enum msg_type flag);
@@ -42,11 +45,17 @@ extern int _ShowMessage(const char *string, enum msg_type flag);
#define ShowNotice(string) _ShowMessage(string,MSG_NOTICE)
// #define DisplayNotice(string) _ShowMessage(string,MSG_NOTICE)
-/* */
+/* MSG_WARNING */
#define ShowWarning(string) _ShowMessage(string,MSG_WARNING)
// #define DisplayWarning(string) _ShowMessage(string,MSG_WARNING)
// #define Warn(string) _ShowMessage(string,MSG_WARNING)
+/* MSG_DEBUG */
+ #define ShowDebug(string) _ShowMessage(string,MSG_DEBUG)
+ #define DisplayDebug(string) _ShowMessage(string,MSG_DEBUG)
+ #define Debug(string) _ShowMessage(string,MSG_DEBUG)
+ #define printDebug() _ShowMessage(striing,MSG_DEBUG)
+
/* MSG_ERROR */
#define ShowError(string) _ShowMessage(string,MSG_ERROR)
// #define DisplayError(string) _ShowMessage(string,MSG_ERROR)