deviceupdatesui/deviceupdates/inc/nsmldmsyncdebug.h
changeset 33 7464c1e21dae
equal deleted inserted replaced
2:a5fecba4b1e4 33:7464c1e21dae
       
     1 /*
       
     2 * Copyright (c) 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 file defines logging macros for DM
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef NSMLDMSYNCDEBUG_H
       
    21 #define NSMLDMSYNCDEBUG_H
       
    22 
       
    23 #ifdef _DEBUG
       
    24 #include <e32svr.h>
       
    25 
       
    26 #define FLOG( a )   { RDebug::Print( _L(a) ); }
       
    27 #define FTRACE( a ) { a; }
       
    28 
       
    29 // Declare the FPrint function
       
    30 //
       
    31 inline void FPrint( const TRefByValue<const TDesC> aFmt, ... )
       
    32     {
       
    33     VA_LIST list;
       
    34     VA_START( list, aFmt );
       
    35     TInt tmpInt = VA_ARG( list, TInt );
       
    36     TInt tmpInt2 = VA_ARG( list, TInt );
       
    37     TInt tmpInt3 = VA_ARG( list, TInt );
       
    38     VA_END( list );
       
    39     RDebug::Print( aFmt, tmpInt, tmpInt2, tmpInt3 );
       
    40     }
       
    41 
       
    42 
       
    43 
       
    44 // ===========================================================================
       
    45 #else // // No loggings --> Reduced binary size
       
    46 // ===========================================================================
       
    47 #define FLOG( a )
       
    48 #define FTRACE( a )
       
    49 
       
    50 #endif // _DEBUG
       
    51 
       
    52 #endif      // NSMLDMSYNCDEBUG_H
       
    53             
       
    54 // End of File
       
    55