diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-10 01:16:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-10 16:07:17 +0300 |
commit | 8aad60beb37fb0f364b0d8ab5bbe66232eacb676 (patch) | |
tree | 3a1680eadda26f9eca889d85420e73178be683d7 /src/logger.h | |
parent | 4ee5c0ce8a8ded1f4aa30212948c3acefb2b6242 (diff) | |
download | plus-8aad60beb37fb0f364b0d8ab5bbe66232eacb676.tar.gz plus-8aad60beb37fb0f364b0d8ab5bbe66232eacb676.tar.bz2 plus-8aad60beb37fb0f364b0d8ab5bbe66232eacb676.tar.xz plus-8aad60beb37fb0f364b0d8ab5bbe66232eacb676.zip |
Add UNIMPLIMENTEDPACKET macro
Diffstat (limited to 'src/logger.h')
-rw-r--r-- | src/logger.h | 5 |
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; |