presetserver/include/psdebug.h
changeset 0 09774dfdd46b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/presetserver/include/psdebug.h	Mon Apr 19 14:01:53 2010 +0300
@@ -0,0 +1,50 @@
+/*
+* Copyright (c) 2006-2006 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:  Debug header file for Preset Server.
+*
+*/
+
+
+#ifndef PSDEBUG_H
+#define PSDEBUG_H
+
+#include <e32svr.h>
+
+// Define PS_ALL_DEBUG to get debug output from Preset Server.
+// It is automatically enabled for debug builds.
+// #define PS_ALL_DEBUG
+
+#ifdef _DEBUG
+#ifndef PS_ALL_DEBUG
+#define PS_ALL_DEBUG
+#endif // PS_ALL_DEBUG
+#endif // _DEBUG
+
+#ifdef PS_ALL_DEBUG
+    #define PSDEBUG( a ) RDebug::Print( _L( a ) )
+    #define PSDEBUG2( a, b ) RDebug::Print( _L( a ), b )
+    #define PSDEBUG3( a, b, c ) RDebug::Print( _L( a ), b, c )
+    #define PSDEBUG4( a, b, c, d ) RDebug::Print( _L( a ), b, c, d )
+    #define PSDEBUG5( a, b, c, d, e ) RDebug::Print( _L( a ), b, c, d, e )
+    #define PSDEBUGVAR( a ) a
+#else
+    #define PSDEBUG( a )
+    #define PSDEBUG2( a, b )
+    #define PSDEBUG3( a, b, c )
+    #define PSDEBUG4( a, b, c, d ) 
+    #define PSDEBUG5( a, b, c, d, e )
+    #define PSDEBUGVAR( a )
+#endif // PS_ALL_DEBUG
+
+#endif // PSDEBUG_H