multimediacommscontroller/mmccinterface/inc/mmccinterfacelogs.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     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:    
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef MMCCINTERFACELOGS_H
       
    22 #define MMCCINTERFACELOGS_H
       
    23 
       
    24 
       
    25 #include "mcclogs.h"
       
    26 
       
    27 #if defined( _DEBUG ) && !defined( TEST_EUNIT )
       
    28 
       
    29 #define __MCC_INTERFACE
       
    30 
       
    31 #endif
       
    32 
       
    33 #ifdef __MCC_INTERFACE
       
    34 
       
    35 _LIT(KAnyFormat, "Mcc/Interface:");
       
    36 
       
    37 #define __INTERFACE(a) \
       
    38     {  _LIT( KStr, a); TMccLog::Print( KAnyFormat, KStr ); }
       
    39 #define __INTERFACE_INT1(a, b) \
       
    40     {  _LIT( KStr, a); TMccLog::Print( KAnyFormat, KStr, b); }
       
    41 #define __INTERFACE_INT2(a, b, c) \
       
    42     { _LIT( KStr, a); TMccLog::Print( KAnyFormat, KStr, b, c); }
       
    43 #define __INTERFACE_STR(a, b) \
       
    44     { _LIT( KStr, a); TMccLog::Print( KAnyFormat, KStr, b); }
       
    45 #define __INTERFACE_STR8(a, b) \
       
    46     { _LIT( KStr, a); TMccLog::Print( KAnyFormat, KStr, b); }
       
    47 
       
    48 #else
       
    49 
       
    50 #define __INTERFACE(a)
       
    51 #define __INTERFACE_INT1(a, b)
       
    52 #define __INTERFACE_INT2(a, b, c)
       
    53 #define __INTERFACE_STR(a, b)
       
    54 #define __INTERFACE_STR8(a, b)
       
    55 
       
    56 #endif
       
    57 
       
    58 #endif