os/persistentdata/featuremgmt/featuremgr/test/helper/test_plugins/inc/trace.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 /*
     2 * Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description:
    15 *
    16 */
    17 
    18 
    19 
    20 #ifndef TRACE_H
    21 #define TRACE_H
    22 
    23 // INCLUDES
    24 #include <e32debug.h>
    25 
    26 // PC-LINT OPTIONS
    27 // Removes null statement not in line by itself warnings from
    28 // COMPONENT_TRACE macros
    29 //lint -esym(960,54)
    30 
    31 // Removes "area too small" pointer cast warnings.
    32 //lint -e826
    33 
    34 
    35 
    36 // CONSTANTS
    37 // MACROS
    38 #ifdef _DEBUG
    39 
    40     #ifdef TEST_PLUGIN_TRACE_FLAG
    41 
    42         #define TEST_PLUGIN_TRACE( a ) RDebug::Print a
    43 
    44     #else // #ifdef TEST_PLUGIN_TRACE_FLAG
    45 
    46         #define TEST_PLUGIN_TRACE( a )
    47 
    48     #endif //#ifdef TEST_PLUGIN_TRACE_FLAG
    49 
    50 
    51     #ifdef TEST_PLUGIN_API_TRACE_FLAG
    52 
    53         #define TEST_PLUGIN_API_TRACE( a ) RDebug::Print a
    54 
    55     #else //#ifdef TEST_PLUGIN_API_TRACE_FLAG
    56 
    57         #define TEST_PLUGIN_API_TRACE( a )
    58 
    59     #endif //#ifdef TEST_PLUGIN_API_TRACE_FLAG
    60 
    61 #else // #ifdef _DEBUG
    62 
    63     #define TEST_PLUGIN_TRACE( a )
    64     #define TEST_PLUGIN_API_TRACE( a )
    65 
    66 #endif //#ifdef _DEBUG
    67 
    68 
    69 // DATA TYPES
    70 // FUNCTION PROTOTYPES
    71 // FORWARD DECLARATIONS
    72 
    73 #endif //#ifndef TRACE_H
    74