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.cpp | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'src/logger.cpp') 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 #elif defined __APPLE__ #include -#endif +#endif // WIN32 #include @@ -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); } -- cgit v1.2.3-70-g09d2