From 9493e56b2c2c421ff82759c0a4d0aad999ea79c6 Mon Sep 17 00:00:00 2001 From: Summeli Date: Fri, 25 Jan 2013 17:00:07 +0200 Subject: [PATCH] Routing loggings in Symbian though qDebug to the console --- base/logging.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/base/logging.h b/base/logging.h index cd16386e81..ca97110497 100644 --- a/base/logging.h +++ b/base/logging.h @@ -38,7 +38,7 @@ inline void Crash() { #endif -#ifdef ANDROID +#if defined(ANDROID) #include @@ -54,6 +54,13 @@ inline void Crash() { #define MessageBox(a, b, c, d) __android_log_print(ANDROID_LOG_INFO, APP_NAME, "%s %s", (b), (c)); +#elif defined(__SYMBIAN32__) +#include +#define ILOG(...) { qDebug(__VA_ARGS__);} +#define WLOG(...) { qDebug(__VA_ARGS__);} +#define ELOG(...) { qDebug(__VA_ARGS__);} +#define FLOG(...) { qDebug(__VA_ARGS__); Crash();} + #else // TODO: Win32 version using OutputDebugString