Removed test code, and made apple use xterm colors.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12352 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2013-01-14 00:41:06 +00:00
parent 5d8c0d7be1
commit c70b63ff40
2 changed files with 3 additions and 9 deletions

View File

@ -108,12 +108,7 @@ namespace MemoryLeaks
* about those objects. */
void checkForLeaks()
{
Log::verbose("LeackCheck", "checking for leaks... ");
Log::debug("LeackCheck", "checking for leaks... ");
Log::info("LeackCheck", "checking for leaks... ");
Log::warn("LeackCheck", "checking for leaks... ");
Log::error("LeackCheck", "checking for leaks... ");
Log::fatal("LeackCheck", "checking for leaks... ");
g_all_objects.lock();
if (g_all_objects.getData().size()>0)
{

View File

@ -62,7 +62,6 @@ void Log::setTerminalColor(LogLevel level)
case LL_FATAL: color = TERM_RED << 4 | TERM_WHITE; break;
} // switch
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),color);
#elif defined(__APPLE__)
#else
enum TermAttr
{
@ -97,7 +96,9 @@ void Log::setTerminalColor(LogLevel level)
} // setTerminalColor
// ----------------------------------------------------------------------------
/** Resets the terminal color to the default.
/** Resets the terminal color to the default, and adds a new line (if a new
* line is added as part of the message, a potential change of background
* color will also affect the next row).
*/
void Log::resetTerminalColor()
{
@ -112,8 +113,6 @@ void Log::resetTerminalColor()
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),
/*TERM_BLACK*/0 << 4 | /*TERM_LIGHTGRAY*/7);
printf("\n");
#elif defined(__APPLE__)
printf("\n");
#else
printf("%c[0;;m\n", 0x1B);
#endif