simpledatamodeladapter/simpleimplugin/inc/simpleimlogger.h
branchRCL_3
changeset 17 2669f8761a99
parent 16 2580314736af
child 18 fbd2e7cec7ef
equal deleted inserted replaced
16:2580314736af 17:2669f8761a99
     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 
       
    19 #ifndef SIMPLEIMLOGGER_H
       
    20 #define SIMPLEIMLOGGER_H
       
    21 
       
    22 #ifdef _DEBUG
       
    23     #include <e32svr.h>
       
    24     #define _DEBUG_SIMPLE_IM_PLUGIN
       
    25 #endif
       
    26 
       
    27 #ifdef _DEBUG_SIMPLE_IM_PLUGIN
       
    28     #define DP_IMP( a ) \
       
    29         { _LIT( KFormatString, a ); RDebug::Print( KFormatString ); }
       
    30     #define DP_IMP2( a, b ) \
       
    31         { _LIT( KFormatString, a ); RDebug::Print( KFormatString, b ); }
       
    32     #define DP_IMP3( a, b, c ) \
       
    33         { _LIT( KFormatString, a ); RDebug::Print( KFormatString, b, c ); }
       
    34 #else
       
    35     #define DP_IMP( a );
       
    36     #define DP_IMP2( a, b );
       
    37     #define DP_IMP3( a, b, c );
       
    38 #endif
       
    39 
       
    40 #endif // SIMPLEIMLOGGER_H