diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-23 22:01:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-23 22:01:44 +0300 |
commit | 3c404128c4669a1f4f190e20a89553677717fc50 (patch) | |
tree | 2db4e5031089c800c4e00fd6244e578f44a7c910 /src/logger.h | |
parent | 89b267d6d73bbc59f7c313b8a22b97fbb27f99a8 (diff) | |
download | plus-3c404128c4669a1f4f190e20a89553677717fc50.tar.gz plus-3c404128c4669a1f4f190e20a89553677717fc50.tar.bz2 plus-3c404128c4669a1f4f190e20a89553677717fc50.tar.xz plus-3c404128c4669a1f4f190e20a89553677717fc50.zip |
Add missing comments into defines.
Diffstat (limited to 'src/logger.h')
-rw-r--r-- | src/logger.h | 14 |
1 files changed, 7 insertions, 7 deletions
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> _SDL_stdinc_h #ifdef USE_SDL2 #pragma GCC diagnostic pop -#endif +#endif // USE_SDL2 #include <SDL_mutex.h> #include <fstream> @@ -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); |