mmmw_plat/voip_audio_services_api/tsrc/VoIPAudioServicesTestClass/inc/debug.h
changeset 53 eabc8c503852
parent 0 71ca22bcf22a
equal deleted inserted replaced
48:a493a607b5bf 53:eabc8c503852
     1 /*
     1 /*
     2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies).
     2  * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3  * All rights reserved.
     4 * This component and the accompanying materials are made available
     4  * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5  * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6  * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     8  *
     9 * Initial Contributors:
     9  * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10  * Nokia Corporation - initial contribution.
    11 *
    11  *
    12 * Contributors:
    12  * Contributors:
    13 *
    13  *
    14 * Description: voip audio service -  Central place for nice debug-type macros & functions
    14  * Description: Telephony Multimedia Service - STIF TEST
    15 *
    15  *
    16 */
    16  */
    17 
       
    18 
    17 
    19 #ifndef DEBUG_H
    18 #ifndef DEBUG_H
    20 #define DEBUG_H
    19 #define DEBUG_H
    21 
    20 
    22 //INCLUDES
    21 //INCLUDES
    23 #include <f32file.h>
    22 #include <f32file.h>
    24 #define FTRACE(a) {a;}
    23 #define FTRACE(a) {a;}
    25 
    24 
    26 /**
    25 /**
    27 * Declare the FPrint function
    26  * Declare the FPrint function
    28 * @since Series 60 2.7
    27  * @return none
    29 * @return none
    28  */
    30 */
       
    31 inline void FPrint(const TRefByValue<const TDesC> aFmt, ...)
    29 inline void FPrint(const TRefByValue<const TDesC> aFmt, ...)
    32 {
    30     {
    33     VA_LIST list;
    31     VA_LIST list;
    34     VA_START(list,aFmt);
    32     VA_START(list,aFmt);
    35     TInt tmpInt = VA_ARG(list, TInt);
    33     TInt tmpInt = VA_ARG(list, TInt);
    36     TInt tmpInt2 = VA_ARG(list, TInt);
    34     TInt tmpInt2 = VA_ARG(list, TInt);
    37     TInt tmpInt3 = VA_ARG(list, TInt);
    35     TInt tmpInt3 = VA_ARG(list, TInt);
    38     VA_END(list);
    36     VA_END(list);
    39     #ifdef _DEBUG
    37     #ifdef _DEBUG
    40     RDebug::Print(aFmt, tmpInt, tmpInt2, tmpInt3);
    38     RDebug::Print(aFmt, tmpInt, tmpInt2, tmpInt3);
    41     #endif
    39     #endif
    42 }
    40     }
    43 #endif // DEBUG_H
    41 #endif // DEBUG_H
    44 
    42 
    45 // End of File
    43 // End of File