devencdiskutils/DevEncStarter/inc/DevEncStarterDebug.h
changeset 0 164170e6151a
equal deleted inserted replaced
-1:000000000000 0:164170e6151a
       
     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:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef DEVENCSTARTERDEBUG_H
       
    19 #define DEVENCSTARTERDEBUG_H
       
    20 
       
    21 #ifdef _DEBUG
       
    22 
       
    23 #define DLOG( aText ) \
       
    24     { \
       
    25     _LIT( KText, aText ); \
       
    26     RDebug::Print( KText ); \
       
    27     }
       
    28 
       
    29 #define DLOG2( aText, aParam ) \
       
    30     { \
       
    31     _LIT( KText, aText ); \
       
    32     RDebug::Print( KText, aParam ); \
       
    33     }
       
    34 
       
    35 #else   // _DEBUG not defined, no logging code will be included at all!
       
    36 
       
    37 #define DLOG( a )
       
    38 #define DLOG2( a, p )
       
    39 
       
    40 #endif // _DEBUG
       
    41 
       
    42 #endif // DEVENCSTARTERDEBUG_H
       
    43 
       
    44 // End of File