phonebookengines/contactsmodel/cntplsql/inc/predictivesearchlog.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 23 Jun 2010 18:02:44 +0300
changeset 46 efe85016a067
permissions -rw-r--r--
Revision: 201023 Kit: 2010125

/*
* Copyright (c) 2010 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: Macros for performing logging 
*/

#ifndef __PREDICTIVESEARCHLOG_H__
#define __PREDICTIVESEARCHLOG_H__


// To avoid logging in debug builds, define NO_PRED_SEARCH_LOGS macro in the
// file that includes this header file
#if !defined(NO_PRED_SEARCH_LOGS) && defined(_DEBUG)
#define WRITE_PRED_SEARCH_LOGS
#endif


#if defined(WRITE_PRED_SEARCH_LOGS)

#include <e32debug.h> // RDebug

#define PRINT(x)					RDebug::Print(x)
#define PRINT1(x, y)				RDebug::Print(x, y)
#define PRINT2(x, y, z)				RDebug::Print(x, y, z)
#define PRINT3(w, x, y, z)			RDebug::Print(w, x, y, z)
#define PRINT4(v, w, x, y, z)		RDebug::Print(v, w, x, y, z)
#define PRINT5(u, v, w, x, y, z)	RDebug::Print(u, v, w, x, y, z)

#else // #if defined(WRITE_PRED_SEARCH_LOGS)

#define PRINT(x)
#define PRINT1(x, y)
#define PRINT2(x, y, z)
#define PRINT3(w, x, y, z)
#define PRINT4(v, w, x, y, z)
#define PRINT5(u, v, w, x, y, z)

#endif // #if defined(WRITE_PRED_SEARCH_LOGS)


#endif // __PREDICTIVESEARCHLOG_H__

// End of file