mmserv/radioutility/fmpresetutility/src/debug.h
changeset 0 71ca22bcf22a
equal deleted inserted replaced
-1:000000000000 0:71ca22bcf22a
       
     1 /*
       
     2 * Copyright (c) 2005 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:  Central place for nice debug-type macros & functions
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef DEBUG_H
       
    20 #define DEBUG_H
       
    21 
       
    22 //INCLUDES
       
    23 #include <f32file.h>
       
    24 #define FTRACE(a) {a;}
       
    25     /**
       
    26     * Declare the FPrint function
       
    27     * @since Series 60 2.7
       
    28     * @return none
       
    29     */
       
    30 inline void FPrint(const TRefByValue<const TDesC> aFmt, ...)
       
    31    {
       
    32    VA_LIST list;
       
    33    VA_START(list,aFmt);
       
    34    TInt tmpInt = VA_ARG(list, TInt);
       
    35    TInt tmpInt2 = VA_ARG(list, TInt);
       
    36    TInt tmpInt3 = VA_ARG(list, TInt);
       
    37    VA_END(list);
       
    38    #ifdef _DEBUG
       
    39    RDebug::Print(aFmt, tmpInt, tmpInt2, tmpInt3);
       
    40    #endif
       
    41    }
       
    42 
       
    43 #endif // DEBUG_H
       
    44 
       
    45 // End of File