From 8aad60beb37fb0f364b0d8ab5bbe66232eacb676 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 10 Mar 2015 01:16:50 +0300 Subject: Add UNIMPLIMENTEDPACKET macro --- src/logger.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/logger.h') 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 mDelayedLog; -- cgit v1.2.3-70-g09d2