locationsystemui/locationsysui/locsuplsettingsui/inc/locsupldebug.h
branchRCL_3
changeset 44 2b4ea9893b66
parent 42 02ba3f1733c6
child 45 6b6920c56e2f
equal deleted inserted replaced
42:02ba3f1733c6 44:2b4ea9893b66
     1 /*
       
     2 * Copyright (c) 2008 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 LOCSUPL_DEBUG_H
       
    20 #define LOCSUPL_DEBUG_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32std.h>
       
    24 #include "locsupldebugconfig.h"
       
    25 
       
    26 // MACROS
       
    27 #ifdef _LOCSUPLDEBUG
       
    28 
       
    29 #define DEBUG( TEXT) Debug( _L( #TEXT ));
       
    30 #define DEBUG1( TEXT, ARG1 ) Debug( _L( #TEXT ), ( ARG1 ));
       
    31 #define DEBUG2( TEXT, ARG1, ARG2 ) Debug( _L( #TEXT ), ( ARG1 ), ( ARG2 ));
       
    32 #define DEBUG3( TEXT, ARG1, ARG2, ARG3 ) Debug( _L( #TEXT ), ( ARG1 ), ( ARG2 ), ( ARG3 ));
       
    33 
       
    34 void Debug( TRefByValue<const TDesC> aText, ...);
       
    35 
       
    36 #else
       
    37 
       
    38 #define DEBUG( TEXT ) ;
       
    39 #define DEBUG1( TEXT, ARG1 ) ;
       
    40 #define DEBUG2( TEXT, ARG1, ARG2 ) ;
       
    41 #define DEBUG3( TEXT, ARG1, ARG2, ARG3 ) ;
       
    42 
       
    43 #endif // _LOCSUPLDEBUG
       
    44 
       
    45 #endif // LOCSUPL_DEBUG_H