mmfenh/enhancedmediaclient/inc/tracemacros.h
changeset 0 71ca22bcf22a
equal deleted inserted replaced
-1:000000000000 0:71ca22bcf22a
       
     1 /*
       
     2 * Copyright (c) 2006 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:  Debug traces marco Definitions.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef TRACES_MACRO_H
       
    20 #define TRACES_MACRO_H
       
    21 
       
    22 // In debug binaries, print debug traces, else do nothing
       
    23 #ifdef _DEBUG
       
    24 
       
    25 #include <e32debug.h>
       
    26 
       
    27 #define EMC_TRACE1(str) \
       
    28     RDebug::Print(str)
       
    29 #define EMC_TRACE2(str,val1) \
       
    30     RDebug::Print(str,val1)
       
    31 #define EMC_TRACE3(str,val1,val2) \
       
    32     RDebug::Print(str,val1,val2)
       
    33 #define EMC_TRACE4(str,val1,val2,val3) \
       
    34     RDebug::Print(str,val1,val2,val3)
       
    35 #define EMC_TRACE5(str,val1,val2,val3,val4) \
       
    36     RDebug::Print(str,val1,val2,val3,val4)
       
    37 #define EMC_TRACE6(str,val1,val2,val3,val4,val5) \
       
    38     RDebug::Print(str,val1,val2,val3,val4,val5)
       
    39 #else
       
    40 #define EMC_TRACE1(str)
       
    41 #define EMC_TRACE2(str,val1)
       
    42 #define EMC_TRACE3(str,val1,val2)
       
    43 #define EMC_TRACE4(str,val1,val2,val3)
       
    44 #define EMC_TRACE5(str,val1,val2,val3,val4)
       
    45 #define EMC_TRACE6(str,val1,val2,val3,val4,val5)
       
    46 #endif // _DEBUG
       
    47 
       
    48 #endif // TRACES_MACRO_H