systemswstubs/hwrmstubplugins/inc/Trace.h
changeset 39 65e91466a14b
parent 31 931072794a66
child 40 b7e5ed8c1342
equal deleted inserted replaced
31:931072794a66 39:65e91466a14b
     1 /*
       
     2 * Copyright (c) 2002-2005 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:  This is debug macro definition file for HWRM
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef TRACE_H
       
    20 #define TRACE_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32svr.h>
       
    24 
       
    25 // PC-LINT OPTIONS
       
    26 // Removes null statement not in line by itself warnings from 
       
    27 // COMPONENT_TRACE macros
       
    28 //lint -esym(960,54)
       
    29 
       
    30 // Removes "area too small" pointer cast warnings.
       
    31 //lint -e826
       
    32 
       
    33 
       
    34 
       
    35 // CONSTANTS
       
    36 // MACROS
       
    37 #ifdef _DEBUG
       
    38 
       
    39     #ifdef COMPONENT_TRACE_FLAG
       
    40 
       
    41         #define COMPONENT_TRACE( a ) RDebug::Print a 
       
    42 
       
    43     #else // #ifdef COMPONENT_TRACE_FLAG
       
    44 
       
    45         #define COMPONENT_TRACE( a )
       
    46 
       
    47     #endif //#ifdef COMPONENT_TRACE_FLAG
       
    48 
       
    49     #ifdef API_TRACE_FLAG
       
    50 
       
    51         #define API_TRACE( a ) RDebug::Print a
       
    52 
       
    53     #else //#ifdef API_TRACE_FLAG
       
    54 
       
    55         #define API_TRACE( a )
       
    56 
       
    57     #endif //#ifdef API_TRACE_FLAG
       
    58 
       
    59 #else // #ifdef _DEBUG
       
    60 
       
    61     #define COMPONENT_TRACE( a )
       
    62     #define API_TRACE( a )
       
    63 
       
    64 #endif //#ifdef _DEBUG
       
    65 
       
    66 
       
    67 // DATA TYPES
       
    68 // FUNCTION PROTOTYPES
       
    69 // FORWARD DECLARATIONS
       
    70 
       
    71 #endif //#ifndef TRACE_H
       
    72 
       
    73 
       
    74 //  End of File