From 1c228aba7a88dc6dd5c91577a3034b16bd9acce7 Mon Sep 17 00:00:00 2001 From: "wrenczes@gmail.com" Date: Tue, 1 Mar 2011 08:53:15 +0000 Subject: [PATCH] Make the ToHex() util function always available, instead of debug only on win/linux. Useful for tracing addresses in psp log files... --- JGE/include/DebugRoutines.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/JGE/include/DebugRoutines.h b/JGE/include/DebugRoutines.h index 6ac61edb2..14189928f 100644 --- a/JGE/include/DebugRoutines.h +++ b/JGE/include/DebugRoutines.h @@ -11,19 +11,18 @@ #include #include -#if defined (WIN32) || defined (LINUX) -#ifdef _DEBUG - using namespace std; template std::string ToHex(T* pointer) { std::ostringstream stream; - stream << std::hex << showbase << setfill('0') << setw(8) << (int) pointer; + stream << hex << showbase << setfill('0') << setw(8) << (int) pointer; return stream.str(); } +#if defined (WIN32) || defined (LINUX) +#ifdef _DEBUG #ifndef QT_CONFIG #define DebugTrace(inString) \