locationcentre/lcutils/inc/lcdebug.h
branchRCL_3
changeset 16 4721bd00d3da
parent 14 3a25f69541ff
child 21 e15b7f06eba6
equal deleted inserted replaced
14:3a25f69541ff 16:4721bd00d3da
     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:  Utility class for Debug traces
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef LCDEBUG_H
       
    20 #define LCDEBUG_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32std.h>
       
    24 
       
    25 // #define _LCDEBUG
       
    26     
       
    27 // MACROS
       
    28 #ifdef _LCDEBUG
       
    29 
       
    30 #define DEBUG( TEXT) Debug( _L( #TEXT ));
       
    31 #define DEBUG1( TEXT, ARG1 ) Debug( _L( #TEXT ), ( ARG1 ));
       
    32 #define DEBUG2( TEXT, ARG1, ARG2 ) Debug( _L( #TEXT ), ( ARG1 ), ( ARG2 ));
       
    33 #define DEBUG3( TEXT, ARG1, ARG2, ARG3 ) Debug( _L( #TEXT ), ( ARG1 ), ( ARG2 ), ( ARG3 ));
       
    34 
       
    35 #else
       
    36 
       
    37 #define DEBUG( TEXT ) ;
       
    38 #define DEBUG1( TEXT, ARG1 ) ;
       
    39 #define DEBUG2( TEXT, ARG1, ARG2 ) ;
       
    40 #define DEBUG3( TEXT, ARG1, ARG2, ARG3 ) ;
       
    41 
       
    42 #endif // _LCDEBUG
       
    43 
       
    44 IMPORT_C void Debug( TRefByValue<const TDesC> aText, ...);
       
    45 
       
    46 #endif // LCDEBUG_H