1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/persistentdata/featuremgmt/featuremgr/test/helper/test_plugins/inc/trace.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,74 @@
1.4 +/*
1.5 +* Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +* All rights reserved.
1.7 +* This component and the accompanying materials are made available
1.8 +* under the terms of "Eclipse Public License v1.0"
1.9 +* which accompanies this distribution, and is available
1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +*
1.12 +* Initial Contributors:
1.13 +* Nokia Corporation - initial contribution.
1.14 +*
1.15 +* Contributors:
1.16 +*
1.17 +* Description:
1.18 +*
1.19 +*/
1.20 +
1.21 +
1.22 +
1.23 +#ifndef TRACE_H
1.24 +#define TRACE_H
1.25 +
1.26 +// INCLUDES
1.27 +#include <e32debug.h>
1.28 +
1.29 +// PC-LINT OPTIONS
1.30 +// Removes null statement not in line by itself warnings from
1.31 +// COMPONENT_TRACE macros
1.32 +//lint -esym(960,54)
1.33 +
1.34 +// Removes "area too small" pointer cast warnings.
1.35 +//lint -e826
1.36 +
1.37 +
1.38 +
1.39 +// CONSTANTS
1.40 +// MACROS
1.41 +#ifdef _DEBUG
1.42 +
1.43 + #ifdef TEST_PLUGIN_TRACE_FLAG
1.44 +
1.45 + #define TEST_PLUGIN_TRACE( a ) RDebug::Print a
1.46 +
1.47 + #else // #ifdef TEST_PLUGIN_TRACE_FLAG
1.48 +
1.49 + #define TEST_PLUGIN_TRACE( a )
1.50 +
1.51 + #endif //#ifdef TEST_PLUGIN_TRACE_FLAG
1.52 +
1.53 +
1.54 + #ifdef TEST_PLUGIN_API_TRACE_FLAG
1.55 +
1.56 + #define TEST_PLUGIN_API_TRACE( a ) RDebug::Print a
1.57 +
1.58 + #else //#ifdef TEST_PLUGIN_API_TRACE_FLAG
1.59 +
1.60 + #define TEST_PLUGIN_API_TRACE( a )
1.61 +
1.62 + #endif //#ifdef TEST_PLUGIN_API_TRACE_FLAG
1.63 +
1.64 +#else // #ifdef _DEBUG
1.65 +
1.66 + #define TEST_PLUGIN_TRACE( a )
1.67 + #define TEST_PLUGIN_API_TRACE( a )
1.68 +
1.69 +#endif //#ifdef _DEBUG
1.70 +
1.71 +
1.72 +// DATA TYPES
1.73 +// FUNCTION PROTOTYPES
1.74 +// FORWARD DECLARATIONS
1.75 +
1.76 +#endif //#ifndef TRACE_H
1.77 +