presetserver/include/psdebug.h
changeset 0 09774dfdd46b
equal deleted inserted replaced
-1:000000000000 0:09774dfdd46b
       
     1 /*
       
     2 * Copyright (c) 2006-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:  Debug header file for Preset Server.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef PSDEBUG_H
       
    20 #define PSDEBUG_H
       
    21 
       
    22 #include <e32svr.h>
       
    23 
       
    24 // Define PS_ALL_DEBUG to get debug output from Preset Server.
       
    25 // It is automatically enabled for debug builds.
       
    26 // #define PS_ALL_DEBUG
       
    27 
       
    28 #ifdef _DEBUG
       
    29 #ifndef PS_ALL_DEBUG
       
    30 #define PS_ALL_DEBUG
       
    31 #endif // PS_ALL_DEBUG
       
    32 #endif // _DEBUG
       
    33 
       
    34 #ifdef PS_ALL_DEBUG
       
    35     #define PSDEBUG( a ) RDebug::Print( _L( a ) )
       
    36     #define PSDEBUG2( a, b ) RDebug::Print( _L( a ), b )
       
    37     #define PSDEBUG3( a, b, c ) RDebug::Print( _L( a ), b, c )
       
    38     #define PSDEBUG4( a, b, c, d ) RDebug::Print( _L( a ), b, c, d )
       
    39     #define PSDEBUG5( a, b, c, d, e ) RDebug::Print( _L( a ), b, c, d, e )
       
    40     #define PSDEBUGVAR( a ) a
       
    41 #else
       
    42     #define PSDEBUG( a )
       
    43     #define PSDEBUG2( a, b )
       
    44     #define PSDEBUG3( a, b, c )
       
    45     #define PSDEBUG4( a, b, c, d ) 
       
    46     #define PSDEBUG5( a, b, c, d, e )
       
    47     #define PSDEBUGVAR( a )
       
    48 #endif // PS_ALL_DEBUG
       
    49 
       
    50 #endif // PSDEBUG_H