diff -r 000000000000 -r 71ca22bcf22a mmfenh/enhancedmediaclient/inc/tracemacros.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mmfenh/enhancedmediaclient/inc/tracemacros.h Tue Feb 02 01:08:46 2010 +0200 @@ -0,0 +1,48 @@ +/* +* Copyright (c) 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 traces marco Definitions. +* +*/ + + +#ifndef TRACES_MACRO_H +#define TRACES_MACRO_H + +// In debug binaries, print debug traces, else do nothing +#ifdef _DEBUG + +#include + +#define EMC_TRACE1(str) \ + RDebug::Print(str) +#define EMC_TRACE2(str,val1) \ + RDebug::Print(str,val1) +#define EMC_TRACE3(str,val1,val2) \ + RDebug::Print(str,val1,val2) +#define EMC_TRACE4(str,val1,val2,val3) \ + RDebug::Print(str,val1,val2,val3) +#define EMC_TRACE5(str,val1,val2,val3,val4) \ + RDebug::Print(str,val1,val2,val3,val4) +#define EMC_TRACE6(str,val1,val2,val3,val4,val5) \ + RDebug::Print(str,val1,val2,val3,val4,val5) +#else +#define EMC_TRACE1(str) +#define EMC_TRACE2(str,val1) +#define EMC_TRACE3(str,val1,val2) +#define EMC_TRACE4(str,val1,val2,val3) +#define EMC_TRACE5(str,val1,val2,val3,val4) +#define EMC_TRACE6(str,val1,val2,val3,val4,val5) +#endif // _DEBUG + +#endif // TRACES_MACRO_H \ No newline at end of file