diff -r 000000000000 -r d54f32e146dd tactilefeedback/inc/tactilefeedbacktrace.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tactilefeedback/inc/tactilefeedbacktrace.h Thu Dec 17 08:53:38 2009 +0200 @@ -0,0 +1,49 @@ +/* +* 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: Master trace -file for whole Tactile Feedback subsystem. +* Part of: Tactile Feedback. +* +*/ + + + +#ifndef TACTILEFEEDBACKTRACE_H +#define TACTILEFEEDBACKTRACE_H + +#include + + +#ifndef _DEBUG + + #define TRACE( x ) + #define TRACE2( x, y ) + #define TRACE3( x, y, z ) + #define TRACE4( x, y, z, zz ) + #define TRACE5( x, y, z, zz, zzz ) + +#else + +#include +#include // RDebug + +#define TRACE( x ) RDebug::Print( _L( x ) ) +#define TRACE2( x, y ) RDebug::Print( _L( x ), ( y ) ) +#define TRACE3( x, y, z ) RDebug::Print( _L( x ), ( y ), ( z ) ) +#define TRACE4( x, y, z, zz ) RDebug::Print( _L( x ), ( y ), ( z ), ( zz ) ) +#define TRACE5( x, y, z, zz, zzz ) RDebug::Print( _L( x ), ( y ), ( z ), ( zz ), ( zzz ) ) + +#endif // _DEBUG + +#endif // TACTILEFEEDBACKTRACE_H +