From 5ede71fb84bac936977a8538e1d03e909a8b1475 Mon Sep 17 00:00:00 2001 From: John Peterson Date: Tue, 9 Dec 2008 03:14:44 +0000 Subject: [PATCH] Turned on logging with debugging in windows git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1453 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Common/Src/Common.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Source/Core/Common/Src/Common.h b/Source/Core/Common/Src/Common.h index d99029ebf2..7e1caf7c42 100644 --- a/Source/Core/Common/Src/Common.h +++ b/Source/Core/Common/Src/Common.h @@ -34,6 +34,14 @@ #define CHECK_HEAP_INTEGRITY() {if (!_CrtCheckMemory()) PanicAlert("memory corruption detected. see log.");} #endif +#ifdef _WIN32 + /* Turn on logging with debugging, _DEBUG and DEBUGFAST are still added through + preprocessor definitions only */ + #if defined(_DEBUG) || defined(DEBUGFAST) + #define LOGGING + #endif +#endif + #include "../../../PluginSpecs/CommonTypes.h" #define HAVE_WIIUSE 1 #define HAVE_WX 1 @@ -240,7 +248,7 @@ void RegisterPanicAlertHandler(PanicAlertHandler handler); void Host_UpdateLogDisplay(); -// Logging macros +// Logging macros. LOGGING is turned on from earlier in this file #ifdef LOGGING #define LOG(t, ...) __Log(LogTypes::t, __VA_ARGS__);