voipplugins/sipimresolver/inc/sipimresolverdebug.h
changeset 0 a4daefaec16c
equal deleted inserted replaced
-1:000000000000 0:a4daefaec16c
       
     1 /*
       
     2 * Copyright (c) 2009 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:  Provides macros for logging and testing
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef SIPIMRESOLVERDEBUG_H
       
    20 #define SIPIMRESOLVERDEBUG_H
       
    21 
       
    22 #include <e32std.h>
       
    23 
       
    24 //-----------------------------------------------------------------------------
       
    25 // LOG/TEST MACROS
       
    26 //-----------------------------------------------------------------------------
       
    27 
       
    28 #ifdef _DEBUG
       
    29     #include <e32svr.h>
       
    30     #define SIPIMRLOG(AA)           { RDebug::Print(_L(AA)); }
       
    31     #define SIPIMRLOGP(AA,BB)       { RDebug::Print(_L(AA),BB); }
       
    32     #define SIPIMR_TEST(AA)         friend class AA; 
       
    33 #else
       
    34     #define SIPIMRLOG(AA)           // Example: SIPIMRLOG("Test");
       
    35     #define SIPIMRLOGP(AA,BB)       // Example: SIPIMRLOGP("Test %d", aValue);
       
    36     #define SIPIMR_TEST(AA)
       
    37 #endif
       
    38 
       
    39 #endif  //SIPIMRESOLVERDEBUG_H
       
    40