stif/Parser/inc/ParserTracing.h
branchRCL_3
changeset 59 8ad140f3dd41
equal deleted inserted replaced
49:7fdc9a71d314 59:8ad140f3dd41
       
     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: This file contains the tracing operations for the 
       
    15 * CStifParser, CStifSectionParser and CStifItemParser
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef STIFPARSERTRACING_H
       
    20 #define STIFPARSERTRACING_H
       
    21 
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 // CONSTANTS
       
    27 const TUint KError           = 0x1;
       
    28 const TUint KInfo            = 0x2;
       
    29 const TUint KAlways          = 0xFFFFFFFF;
       
    30 const TUint KDebugLevel      = ( KError );
       
    31 
       
    32 // MACROS
       
    33 #ifdef _DEBUG
       
    34 #define __TRACING_ENABLED
       
    35 #endif
       
    36 
       
    37 #ifdef __TRACING_ENABLED
       
    38 // Disable conditional expression is constant -warning
       
    39 #pragma warning( disable : 4127 )
       
    40 #define __TRACE(level,p) if ( (level) & KDebugLevel) { RDebug::Print p ;}
       
    41 #else
       
    42 #define __TRACE(level,p);
       
    43 #endif
       
    44 
       
    45 #endif // STIFPARSERTRACING_H
       
    46 
       
    47 // End of File