summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormc_cameri <mc_cameri@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-19 17:27:17 +0000
committermc_cameri <mc_cameri@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-19 17:27:17 +0000
commit9fdd623ce57666c39651f17668cfc59a2b977d3d (patch)
tree4a384e51d1d10c6da2cdea45692a4d3f0642f10f /src
parent230c174da61cef240ab784bf7ca03c5fb8f99d89 (diff)
downloadhercules-9fdd623ce57666c39651f17668cfc59a2b977d3d.tar.gz
hercules-9fdd623ce57666c39651f17668cfc59a2b977d3d.tar.bz2
hercules-9fdd623ce57666c39651f17668cfc59a2b977d3d.tar.xz
hercules-9fdd623ce57666c39651f17668cfc59a2b977d3d.zip
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@644 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-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)