camerauis/activepalette/Inc/ActivePalette2Logger.h
branchRCL_3
changeset 24 bac7acad7cb3
parent 0 1ddebce53859
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/camerauis/activepalette/Inc/ActivePalette2Logger.h	Wed Sep 01 12:30:54 2010 +0100
@@ -0,0 +1,50 @@
+/*
+* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:  Active Palette logger*
+*/
+
+
+/**
+ * @file ActivePalette2Logger.h
+ * Active Palette logger
+ */
+
+#ifndef _ACTIVE_PALETTE_2_LOGGER_H
+#define _ACTIVE_PALETTE_2_LOGGER_H
+
+#ifdef _DEBUG
+
+#include <e32debug.h>
+
+/// Debug logger
+#define LOGTEXT(a)   		{ RDebug::Print(a); }
+/// Debug logger, takes 1 extra param
+#define LOGTEXT1(a,b)   	{ RDebug::Print(a,b); }
+/// Debug logger, takes 2 extra params
+#define LOGTEXT2(a,b,c)   	{ RDebug::Print(a,b,c); }
+/// Debug logger, takes 3 extra params
+#define LOGTEXT3(a,b,c,d)   { RDebug::Print(a,b,c,d); }
+
+#else 
+
+#define LOGTEXT(a)
+#define LOGTEXT1(a,b)   
+#define LOGTEXT2(a,b,c) 
+#define LOGTEXT3(a,b,c,d)
+
+#endif // _DEBUG
+
+#endif //_ACTIVE_PALETTE_2_LOGGER_H
+
+// End of File