summaryrefslogtreecommitdiff
path: root/src/logger.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-10 01:16:50 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-10 16:07:17 +0300
commit8aad60beb37fb0f364b0d8ab5bbe66232eacb676 (patch)
tree3a1680eadda26f9eca889d85420e73178be683d7 /src/logger.h
parent4ee5c0ce8a8ded1f4aa30212948c3acefb2b6242 (diff)
downloadManaVerse-8aad60beb37fb0f364b0d8ab5bbe66232eacb676.tar.gz
ManaVerse-8aad60beb37fb0f364b0d8ab5bbe66232eacb676.tar.bz2
ManaVerse-8aad60beb37fb0f364b0d8ab5bbe66232eacb676.tar.xz
ManaVerse-8aad60beb37fb0f364b0d8ab5bbe66232eacb676.zip
Add UNIMPLIMENTEDPACKET macro
Diffstat (limited to 'src/logger.h')
-rw-r--r--src/logger.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/logger.h b/src/logger.h
index 5a44c959a..4ddf28818 100644
--- a/src/logger.h
+++ b/src/logger.h
@@ -46,6 +46,9 @@
#define IGNOREDEBUGLOG {}
#endif
+#define UNIMPLIMENTEDPACKET \
+ logger->unimplimented(msg.getId())
+
/**
* The Log Class : Useful to write debug or info messages
*/
@@ -140,6 +143,8 @@ class Logger final
void safeError(const std::string &error_text)
__attribute__ ((noreturn));
+ void unimplimented(const int id);
+
private:
std::ofstream mLogFile;
std::vector<std::string> mDelayedLog;