mmserv/callaudiocontrol/inc/CallAudioControlCommon.h
changeset 0 71ca22bcf22a
equal deleted inserted replaced
-1:000000000000 0:71ca22bcf22a
       
     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:  Defines the common definitions used in CallAudioControl
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CALLAUDIOCONTROLCOMMON_H
       
    19 #define CALLAUDIOCONTROLCOMMON_H
       
    20 
       
    21 // In debug binaries, print debug traces, else do nothing
       
    22 #ifdef _DEBUG
       
    23 
       
    24 #include <e32debug.h>
       
    25 
       
    26 #define CAC_TRACE1(str) \
       
    27     RDebug::Print(str)
       
    28 #define CAC_TRACE2(str,val1) \
       
    29     RDebug::Print(str,val1)
       
    30 #define CAC_TRACE3(str,val1,val2) \
       
    31     RDebug::Print(str,val1,val2)
       
    32 #define CAC_TRACE4(str,val1,val2,val3) \
       
    33     RDebug::Print(str,val1,val2,val3)
       
    34 #define CAC_TRACE5(str,val1,val2,val3,val4) \
       
    35     RDebug::Print(str,val1,val2,val3,val4)
       
    36 #define CAC_TRACE6(str,val1,val2,val3,val4,val5) \
       
    37     RDebug::Print(str,val1,val2,val3,val4,val5)
       
    38 #else
       
    39 #define CAC_TRACE1(str)
       
    40 #define CAC_TRACE2(str,val1)
       
    41 #define CAC_TRACE3(str,val1,val2)
       
    42 #define CAC_TRACE4(str,val1,val2,val3)
       
    43 #define CAC_TRACE5(str,val1,val2,val3,val4)
       
    44 #define CAC_TRACE6(str,val1,val2,val3,val4,val5)
       
    45 #endif // _DEBUG
       
    46 
       
    47 #define RETURN_IF_ERROR(s) if (s != KErrNone) return s;
       
    48 
       
    49 #endif /* CALLAUDIOCONTROLCOMMON_H_ */