wlan_bearer/wlanpsmplugin/inc/am_debug.h
changeset 0 c40eb8fe8501
equal deleted inserted replaced
-1:000000000000 0:c40eb8fe8501
       
     1 /*
       
     2 * Copyright (c) 2002-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 utilities
       
    15 *
       
    16 */
       
    17 
       
    18 /*
       
    19 * %version: 3 %
       
    20 */
       
    21 
       
    22 #ifndef AM_DEBUG_H
       
    23 #define AM_DEBUG_H
       
    24 
       
    25 #include <e32svr.h>
       
    26 
       
    27 #ifdef _DEBUG
       
    28 
       
    29 /**
       
    30 * Class for producing debug traces
       
    31 * @lib
       
    32 * @since Series 60 5.0
       
    33 */
       
    34 
       
    35 #define DEBUG(a)		            RDebug::Print(_L(a))
       
    36 #define DEBUG1(a,b)		            RDebug::Print(_L(a),b)
       
    37 #define DEBUG2(a,b,c)	            RDebug::Print(_L(a),b,c)
       
    38 #define DEBUG3(a,b,c,d)	            RDebug::Print(_L(a),b,c,d)
       
    39 #define DEBUG4(a,b,c,d,e)	        RDebug::Print(_L(a),b,c,d,e)
       
    40 #define DEBUG5(a,b,c,d,e,f)	        RDebug::Print(_L(a),b,c,d,e,f)
       
    41 #define DEBUG6(a,b,c,d,e,f,g)	    RDebug::Print(_L(a),b,c,d,e,f,g)
       
    42 #define DEBUG7(a,b,c,d,e,f,g,h) 	RDebug::Print(_L(a),b,c,d,e,f,g,h)
       
    43 #define DEBUG8(a,b,c,d,e,f,g,h,i)	RDebug::Print(_L(a),b,c,d,e,f,g,h,i)
       
    44 
       
    45 #else // _DEBUG
       
    46 
       
    47 #define DEBUG(a)                    /* _DEBUG is not defined. */
       
    48 #define DEBUG1(a,b)                 /* _DEBUG is not defined. */
       
    49 #define DEBUG2(a,b,c)               /* _DEBUG is not defined. */
       
    50 #define DEBUG3(a,b,c,d)             /* _DEBUG is not defined. */
       
    51 #define DEBUG4(a,b,c,d,e)           /* _DEBUG is not defined. */
       
    52 #define DEBUG5(a,b,c,d,e,f)	        /* _DEBUG is not defined. */
       
    53 #define DEBUG6(a,b,c,d,e,f,g)       /* _DEBUG is not defined. */
       
    54 #define DEBUG7(a,b,c,d,e,f,g,h)     /* _DEBUG is not defined. */
       
    55 #define DEBUG8(a,b,c,d,e,f,g,h,i)	/* _DEBUG is not defined. */
       
    56 
       
    57 #endif // _DEBUG
       
    58 
       
    59 #endif // AM_DEBUG_H