boottimeintegritycheck/inc/IntegrityCheckDebug.h
changeset 0 164170e6151a
equal deleted inserted replaced
-1:000000000000 0:164170e6151a
       
     1 /*
       
     2 * Copyright (c) 2007 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:  Header file for debug settings.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef INTEGRITYCHECKDEBUG_H
       
    20 #define INTEGRITYCHECKDEBUG_H
       
    21 
       
    22 // INCLUDES 
       
    23 #include    <e32base.h>
       
    24 
       
    25 // CONSTANTS 
       
    26     
       
    27 // MACROS 
       
    28 
       
    29 #ifdef _DEBUG
       
    30 // Enable trace printing
       
    31 #define INTEGRITYCHECK_TRACE
       
    32 #endif
       
    33 
       
    34 #ifdef INTEGRITYCHECK_TRACE
       
    35 #include <e32svr.h>
       
    36 #define BTIC_TRACE_PRINT( aText ) { RDebug::Print( _L(aText) ); }
       
    37 #define BTIC_TRACE_PRINT_NUM( aText, aNum ) \
       
    38     { RDebug::Print( _L(aText), aNum ); }
       
    39 #define BTIC_TRACE_PRINT_RAW( aPtr ) \
       
    40     { RDebug::RawPrint( aPtr ); RDebug::Print( _L("\n") ); }  
       
    41 #define BTIC_TRACE_PRINT_ALLOC_CELLS( aText ) \
       
    42     { RDebug::Print( _L(aText), User::CountAllocCells() ); }
       
    43 #else 
       
    44 #define BTIC_TRACE_PRINT( aText )
       
    45 #define BTIC_TRACE_PRINT_NUM( aText, aNum )
       
    46 #define BTIC_TRACE_PRINT_RAW( aPtr )
       
    47 #define BTIC_TRACE_PRINT_ALLOC_CELLS( aText )  
       
    48 #endif
       
    49 
       
    50 // DATA TYPES 
       
    51 
       
    52 // FUNCTION PROTOTYPES 
       
    53 
       
    54 // FORWARD DECLARATIONS
       
    55 
       
    56 // LOCAL FUNCTION PROTOTYPES 
       
    57 
       
    58 // CLASS DECLARATION 
       
    59 
       
    60 #endif //INTEGRITYCHECKDEBUG_H
       
    61 
       
    62 //EOF