voipplugins/sipmxresolver/inc/sipmxresolverdebug.h
branchRCL_3
changeset 21 f742655b05bf
parent 20 65a3ef1d5bd0
child 22 d38647835c2e
equal deleted inserted replaced
20:65a3ef1d5bd0 21:f742655b05bf
     1 /*
       
     2 * Copyright (c) 2004 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 
       
    20 #ifndef SIPMXRESOLVERDEBUG_H
       
    21 #define SIPMXRESOLVERDEBUG_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32def.h>
       
    25 
       
    26 //-----------------------------------------------------------------------------
       
    27 // LOG/TEST MACROS
       
    28 //-----------------------------------------------------------------------------
       
    29 
       
    30 #ifdef _DEBUG
       
    31     #include <e32svr.h>
       
    32     #define SIPMXRLOG(AA)           { RDebug::Print(_L(AA)); }
       
    33     #define SIPMXRLOGP(AA,BB)       { RDebug::Print(_L(AA),BB); }
       
    34     #define SIPMXR_TEST(AA)         friend class AA; 
       
    35 #else
       
    36     #define SIPMXRLOG(AA)           // Example: SIPMXRLOG("Test");
       
    37     #define SIPMXRLOGP(AA,BB)       // Example: SIPMXRLOGP("Test %d", aValue);
       
    38     #define SIPMXR_TEST(AA)
       
    39 #endif
       
    40 
       
    41 #endif  //SIPMXRESOLVERDEBUG_H