dosservices/tsrc/dsytesttool/dsytfstifadapter/inc/dsytesttooltrace.h
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 /*
       
     2 * Copyright (c) 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:  Declaration of DSY test tool traces
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef DSYTESTTOOLTRACE_H
       
    20 #define DSYTESTTOOLTRACE_H
       
    21 
       
    22 
       
    23 
       
    24 // INCLUDES
       
    25 #include <e32svr.h>
       
    26 
       
    27 // PC-LINT OPTIONS
       
    28 // Removes null statement not in line by itself warnings from 
       
    29 // COMPONENT_TRACE macros
       
    30 //lint -esym(960,54)
       
    31 
       
    32 // Removes "area too small" pointer cast warnings.
       
    33 //lint -e826
       
    34 
       
    35 // Member function not referenced (copy constructors / assignment operators)
       
    36 //lint -e1714
       
    37 
       
    38 // Member function not defined (copy constructors / assignment operators)
       
    39 //lint -e1526
       
    40 
       
    41 // Global macro not referenced
       
    42 //lint -e755
       
    43 
       
    44 // Symbol not referenced (uid)
       
    45 //lint -e714
       
    46 
       
    47 // Variable number of arguments
       
    48 //lint -esym(960, 69)
       
    49 
       
    50 
       
    51 // CONSTANTS
       
    52 // MACROS
       
    53 #ifdef _DEBUG
       
    54 
       
    55     void TraceAssertFunc( const TDesC8& aFile, TInt aLine );
       
    56 
       
    57     #define TRACE_ASSERT( a ) if ( !( a ) ) TraceAssertFunc( _L8( __FILE__ ), __LINE__ )
       
    58     #define TRACE_ASSERT_ALWAYS TraceAssertFunc( _L8( __FILE__ ), __LINE__ )
       
    59 
       
    60     #ifdef COMPONENT_TRACE_FLAG
       
    61 
       
    62         #define COMPONENT_TRACE( a ) RDebug::Print a 
       
    63 
       
    64     #else // #ifdef COMPONENT_TRACE_FLAG
       
    65 
       
    66         #define COMPONENT_TRACE( a )
       
    67 
       
    68     #endif //#ifdef COMPONENT_TRACE_FLAG
       
    69 
       
    70 #else // #ifdef _DEBUG
       
    71 
       
    72     #define TRACE_ASSERT( a )
       
    73     #define TRACE_ASSERT_ALWAYS
       
    74     #define COMPONENT_TRACE( a )
       
    75 
       
    76 #endif //#ifdef _DEBUG
       
    77 
       
    78 
       
    79 
       
    80 // DATA TYPES
       
    81 // FUNCTION PROTOTYPES
       
    82 // FORWARD DECLARATIONS
       
    83 
       
    84 
       
    85 
       
    86 #endif //#ifndef DSYTESTTOOLTRACE_H
       
    87 
       
    88 
       
    89 //  End of File