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.cpp | |
parent | 89b267d6d73bbc59f7c313b8a22b97fbb27f99a8 (diff) | |
download | ManaVerse-3c404128c4669a1f4f190e20a89553677717fc50.tar.gz ManaVerse-3c404128c4669a1f4f190e20a89553677717fc50.tar.bz2 ManaVerse-3c404128c4669a1f4f190e20a89553677717fc50.tar.xz ManaVerse-3c404128c4669a1f4f190e20a89553677717fc50.zip |
Add missing comments into defines.
Diffstat (limited to 'src/logger.cpp')
-rw-r--r-- | src/logger.cpp | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/logger.cpp b/src/logger.cpp index b0474c243..49f83efcc 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -34,7 +34,7 @@ #include <windows.h> #elif defined __APPLE__ #include <Carbon/Carbon.h> -#endif +#endif // WIN32 #include <sys/time.h> @@ -99,7 +99,7 @@ Logger::Logger() : { #if defined __native_client__ && defined(NACL_LOG) std::cout.setf(std::ios_base::unitbuf); -#endif +#endif // defined __native_client__ && defined(NACL_LOG) } Logger::~Logger() @@ -206,7 +206,7 @@ void Logger::dlog2(const std::string &str, } } } -#endif +#endif // ENABLEDEBUGLOG void Logger::log1(const char *const buf) { @@ -385,9 +385,11 @@ void Logger::safeError(const std::string &error_text) error_text).append("\""); if (system(msg.c_str()) == -1) std::cerr << "Error: " << error_text << std::endl; -#else +#else // WIN32 + std::cerr << "Error: " << error_text << std::endl; -#endif +#endif // WIN32 + exit(1); } @@ -413,9 +415,11 @@ void Logger::error(const std::string &error_text) "Please see log file for more information.\""); if (system(msg.c_str()) == -1) std::cerr << "Error: " << error_text << std::endl; -#else +#else // WIN32 + std::cerr << "Error: " << error_text << std::endl; -#endif +#endif // WIN32 + exit(1); } |