landmarksui/app/inc/Debug.h
branchRCL_3
changeset 17 1fc85118c3ae
parent 16 8173571d354e
child 18 870918037e16
equal deleted inserted replaced
16:8173571d354e 17:1fc85118c3ae
     1 /*
       
     2 * Copyright (c) 2002 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:    LandmarksUi Content File -    Debug contains debug macros.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 #ifndef DEBUG_H
       
    25 #define DEBUG_H
       
    26 // INCLUDES
       
    27 #include <e32std.h>
       
    28 #include "LmkDebugConfig.h"
       
    29 
       
    30 #ifdef __LMK_DEBUG_FLAG
       
    31 
       
    32 #define DEBUG(TEXT) Debug( _L(#TEXT) );
       
    33 #define DEBUG1(TEXT, ARG1) Debug( _L(#TEXT), (ARG1) );
       
    34 #define DEBUG2(TEXT, ARG1, ARG2) Debug( _L(#TEXT), (ARG1), (ARG2) );
       
    35 #define DEBUG3(TEXT, ARG1, ARG2, ARG3) Debug( _L(#TEXT), (ARG1), (ARG2), (ARG3) );
       
    36 
       
    37 void Debug( TRefByValue<const TDesC> aText, ...);
       
    38 
       
    39 #else
       
    40 
       
    41 #define DEBUG(TEXT);
       
    42 #define DEBUG1(TEXT, ARG1);
       
    43 #define DEBUG2(TEXT, ARG1, ARG2);
       
    44 #define DEBUG3(TEXT, ARG1, ARG2, ARG3);
       
    45 
       
    46 #endif // __LMK_DEBUG_FLAG
       
    47 
       
    48 #endif /* DEBUG_H */