natfw/tsrc/natfwtestconsoles/natfwtestconsole/inc/natfwtestconsolelogs.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     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:    Macroes for logging
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 #ifndef NATFWTESTCONSOLELOGS_H
       
    23 #define NATFWTESTCONSOLELOGS_H
       
    24 
       
    25 
       
    26 #include "natfwlogs.h"
       
    27 
       
    28 #ifdef _DEBUG
       
    29     #define __NATFWTESTCONSOLE_LOGS
       
    30 #endif
       
    31 
       
    32 #ifdef __NATFWTESTCONSOLE_LOGS
       
    33     _LIT(KNATFWTestConsole, "NATFW/NATFWTestConsole:");
       
    34 
       
    35     #define __NATFWTESTCONSOLE(a) \
       
    36         {  _LIT( KStr, a); TNATFWLog::Print( KNATFWTestConsole, KStr ); }
       
    37     #define __NATFWTESTCONSOLE_INT1(a, b) \
       
    38         {  _LIT( KStr, a); TNATFWLog::Print( KNATFWTestConsole, KStr, b); }
       
    39     #define __NATFWTESTCONSOLE_INT2(a, b, c, d) \
       
    40         { _LIT( KStr1, a); _LIT( KStr2, c); \
       
    41         TNATFWLog::Print( KNATFWTestConsole, KStr1, b, KStr2, d); }
       
    42     #define __NATFWTESTCONSOLE_STR(a, b) \
       
    43         { _LIT( KStr, a); TNATFWLog::Print( KNATFWTestConsole, KStr, b); }
       
    44     #define __NATFWTESTCONSOLE_STR8(a, b) \
       
    45         { _LIT( KStr, a); TNATFWLog::Print( KNATFWTestConsole, KStr, b); }
       
    46     #define __NATFWTESTCONSOLE_ADDRLOG( a, b ) \
       
    47           TNATFWLog::Print( _L( a ), b );
       
    48 #else
       
    49     #define __NATFWTESTCONSOLE(a)
       
    50     #define __NATFWTESTCONSOLE_INT1(a, b)
       
    51     #define __NATFWTESTCONSOLE_INT2(a, b, c, d)
       
    52     #define __NATFWTESTCONSOLE_STR(a, b)
       
    53     #define __NATFWTESTCONSOLE_STR8(a, b)
       
    54     #define __NATFWTESTCONSOLE_ADDRLOG( a, b )
       
    55 #endif
       
    56 
       
    57 #endif // NCMNATFWTESTCONSOLELOGS_H