summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/showmsg.c2
-rw-r--r--src/common/showmsg.h13
2 files changed, 13 insertions, 2 deletions
diff --git a/src/common/showmsg.c b/src/common/showmsg.c
index 903fb583b..8c7fc9a13 100644
--- a/src/common/showmsg.c
+++ b/src/common/showmsg.c
@@ -35,6 +35,8 @@ int _ShowMessage(const char *string, enum msg_type flag){ // by MC Cameri
case MSG_WARNING: //Bright Yellow
strcpy(prefix,CL_YELLOW"[Warning]"CL_RESET":");
break;
+ case MSG_DEBUG:
+ strcpy(prefix,CL_CYAN"[Debug]"CL_RESET":");
case MSG_ERROR: //Bright Red (Regular errors)
strcpy(prefix,CL_RED"[Error]"CL_RESET":");
break;
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)