textinput/peninputvkbkr/inc/PeninputVkbKrDbg.h
branchRCL_3
changeset 21 ecbabf52600f
parent 0 eb1f2e154e89
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/textinput/peninputvkbkr/inc/PeninputVkbKrDbg.h	Wed Sep 01 12:23:33 2010 +0100
@@ -0,0 +1,47 @@
+/*
+* Copyright (c) 2002-2005 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:  peninput VKB data manager
+*
+*/
+
+#ifndef __PENINPUTVKBKRDBG_H__
+#define __PENINPUTVKBKRDBG_H__
+
+#ifdef _DEBUG
+#include <e32svr.h>
+    #if __WINS__
+        #define LOG_ASSERT(a) RDebug::Print(_L("PKQC: "a)); __ASSERT_DEBUG(EFalse,User::Panic(_L("PKQC: Not Implemented"),__LINE__))
+        #define LOG(a) RDebug::Print(_L("PKQC: "a))
+        #define LOG1(a,b) RDebug::Print(_L("PKQC: "a),b)
+        #define LOG2(a,b,c) RDebug::Print(_L("PKQC: "a),b,c)
+        #define LOG3(a,b,c,d) RDebug::Print(_L("PKQC: "a),b,c,d)
+        #define LOG4(a,b,c,d,e) RDebug::Print(_L("PKQC: "a),b,c,d,e)
+    #else
+        #define LOG_ASSERT(a) RDebug::Print(_L(a)); __ASSERT_DEBUG(EFalse,User::Panic(_L("PKQC: Not Implemented"),__LINE__))
+        #define LOG(a) RDebug::Print(_L(a))
+        #define LOG1(a,b) RDebug::Print(_L(a),b)
+        #define LOG2(a,b,c) RDebug::Print(_L(a),b,c)
+        #define LOG3(a,b,c,d) RDebug::Print(_L(a),b,c,d)
+        #define LOG4(a,b,c,d,e) RDebug::Print(_L(a),b,c,d,e)
+    #endif
+#else
+    #define LOG_ASSERT(a)
+    #define LOG(a)
+    #define LOG1(a,b)
+    #define LOG2(a,b,c)
+    #define LOG3(a,b,c,d)
+    #define LOG4(a,b,c,d,e)
+#endif
+
+#endif /* __PENINPUTVKBKRDBG_H__ */