resourcemgmt/hwrmtargetmodifierplugin/inc/Trace.h
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 /*
       
     2 * Copyright (c) 2006 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:  Hardware Resource Manager Default Light Target Modifier Plugin 
       
    15 *                trace definitions
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef TRACE_H
       
    21 #define TRACE_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32svr.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 COMPONENT_TRACE_FLAG
       
    41 
       
    42         #define COMPONENT_TRACE( a ) RDebug::Print a 
       
    43 
       
    44     #else // #ifdef COMPONENT_TRACE_FLAG
       
    45 
       
    46         #define COMPONENT_TRACE( a )
       
    47 
       
    48     #endif //#ifdef COMPONENT_TRACE_FLAG
       
    49 
       
    50     #ifdef API_TRACE_FLAG
       
    51 
       
    52         #define API_TRACE( a ) RDebug::Print a
       
    53 
       
    54     #else //#ifdef API_TRACE_FLAG
       
    55 
       
    56         #define API_TRACE( a )
       
    57 
       
    58     #endif //#ifdef API_TRACE_FLAG
       
    59 
       
    60 #else // #ifdef _DEBUG
       
    61 
       
    62     #define COMPONENT_TRACE( a )
       
    63     #define API_TRACE( a )
       
    64 
       
    65 #endif //#ifdef _DEBUG
       
    66 
       
    67 
       
    68 // DATA TYPES
       
    69 // FUNCTION PROTOTYPES
       
    70 // FORWARD DECLARATIONS
       
    71 
       
    72 #endif //#ifndef TRACE_H
       
    73 
       
    74 
       
    75 //  End of File