diff options
author | wizputer <wizputer@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-11-27 19:32:30 +0000 |
---|---|---|
committer | wizputer <wizputer@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-11-27 19:32:30 +0000 |
commit | 486b4f2a12b41507b67a1a93ae5871b3be447914 (patch) | |
tree | 8196d22d0fce973ac6e53b24735776ba9dcaf77f /src/common/showmsg.h | |
parent | ecb15e6101bc1912bb2520151c45ed69af80feb8 (diff) | |
parent | f0da8da932031212f34aa97eff882f72cb69cc2a (diff) | |
download | hercules-486b4f2a12b41507b67a1a93ae5871b3be447914.tar.gz hercules-486b4f2a12b41507b67a1a93ae5871b3be447914.tar.bz2 hercules-486b4f2a12b41507b67a1a93ae5871b3be447914.tar.xz hercules-486b4f2a12b41507b67a1a93ae5871b3be447914.zip |
correct directory structure
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@387 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/showmsg.h')
-rw-r--r-- | src/common/showmsg.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/common/showmsg.h b/src/common/showmsg.h new file mode 100644 index 000000000..03ffe310b --- /dev/null +++ b/src/common/showmsg.h @@ -0,0 +1,50 @@ +#ifndef _SHOWMSG_H_ +#define _SHOWMSG_H_ + +extern char tmp_output[1024]; + +enum msg_type {MSG_STATUS,/* MSG_SQL, */MSG_INFORMATION,MSG_NOTICE,MSG_WARNING,MSG_ERROR,MSG_FATALERROR}; + +extern int _ShowMessage(const char *string, enum msg_type flag); + +/* MSG_XX */ + #define ShowMsg(string,flag) _ShowMessage(string,flag) +// #define DisplayMsg(string,flag) _ShowMessage(string,flag) +// #define ShowMessage(string,flag) _ShowMessage(string,flag) + +/* MSG_STATUS */ + #define ShowStatus(string) _ShowMessage(string,MSG_STATUS) +// #define DisplayStatus(string) _ShowMessage(string,MSG_STATUS) + +/* MSG_SQL*/ +// #define ShowSQL(string) _ShowMessage(string,MSG_SQL) +// #define DisplaySQL(string) _ShowMessage(string,MSG_SQL) + +/* MSG_INFORMATION */ + #define ShowInfo(string) _ShowMessage(string,MSG_INFORMATION) +// #define DisplayInfo(string) _ShowMessage(string,MSG_INFORMATION) +// #define ShowInformation(string) _ShowMessage(string,MSG_INFORMATION) +// #define DisplayInformation(string) _ShowMessage(string,MSG_INFORMATION) + +/* MSG_NOTICE */ + #define ShowNotice(string) _ShowMessage(string,MSG_NOTICE) +// #define DisplayNotice(string) _ShowMessage(string,MSG_NOTICE) + +/* */ + #define ShowWarning(string) _ShowMessage(string,MSG_WARNING) +// #define DisplayWarning(string) _ShowMessage(string,MSG_WARNING) +// #define Warn(string) _ShowMessage(string,MSG_WARNING) + +/* MSG_ERROR */ + #define ShowError(string) _ShowMessage(string,MSG_ERROR) +// #define DisplayError(string) _ShowMessage(string,MSG_ERROR) +// #define OutputError(string) _ShowMessage(string,MSG_ERROR) + +/* MSG_FATALERROR */ + #define ShowFatalError(string) _ShowMessage(string,MSG_FATALERROR) +// #define DisplayFatalError(string) _ShowMessage(string,MSG_ERROR) +// #define Terminate(string) _ShowMessage(string,MSG_FATALERROR) +// #define Kill(string) _ShowMessage(string,MSG_FATALERROR) +// #define AbortEx(string) _ShowMessage(string,MSG_FATALERROR) + +#endif |