From 3c404128c4669a1f4f190e20a89553677717fc50 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 23 Sep 2016 22:01:44 +0300 Subject: Add missing comments into defines. --- src/logger.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/logger.h') diff --git a/src/logger.h b/src/logger.h index 8a7bbbd8c..bfbfe2f68 100644 --- a/src/logger.h +++ b/src/logger.h @@ -26,12 +26,12 @@ #ifdef USE_SDL2 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wswitch-default" -#endif +#endif // USE_SDL2 #include _SDL_stdinc_h #ifdef USE_SDL2 #pragma GCC diagnostic pop -#endif +#endif // USE_SDL2 #include #include @@ -50,12 +50,12 @@ _SDL_stdinc_h if (logger) \ logger->dlog(str) #define IGNOREDEBUGLOG mIgnore = Net::isIgnorePacket(mId) -#else +#else // ENABLEDEBUGLOG #define DEBUGLOG(str) {} #define DEBUGLOG2(str, comment) {} #define DEBUGLOGSTR(str) #define IGNOREDEBUGLOG {} -#endif +#endif // ENABLEDEBUGLOG #define UNIMPLIMENTEDPACKET \ logger->unimplimented(msg.getId()) @@ -178,7 +178,7 @@ class Logger final void dlog2(const std::string &str, const int pos, const char* const comment); -#endif +#endif // ENABLEDEBUGLOG void setDebugLog(const bool n) { mDebugLog = n; } @@ -193,7 +193,7 @@ class Logger final void error(const std::string &error_text) #ifndef ENABLE_CILKPLUS __attribute__ ((noreturn)) -#endif +#endif // ENABLE_CILKPLUS ; /** @@ -203,7 +203,7 @@ class Logger final void safeError(const std::string &error_text) #ifndef ENABLE_CILKPLUS __attribute__ ((noreturn)) -#endif +#endif // ENABLE_CILKPLUS ; void unimplimented(const int id); -- cgit v1.2.3-60-g2f50