commonservices/commonengine/diskspacereserver/inc/tracemacros.h
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 /*
       
     2 * Copyright (c) 2002-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:  Trace macros of CommonEngine
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // MACROS
       
    20 
       
    21 // DEFINES
       
    22 
       
    23 #ifdef _DEBUG	// Debug build
       
    24 	#define COMMON_RDEBUG(X)				RDebug::Print(X)		
       
    25     #define COMMON_RDEBUG_INT(X,Y)			RDebug::Print(X,Y)
       
    26     
       
    27 #else	// hw environment
       
    28 	#define COMMON_RDEBUG(X)
       
    29 	#define COMMON_RDEBUG_INT(X,Y)	
       
    30     		
       
    31 #endif
       
    32 
       
    33 //
       
    34 // Use "macro _RD_COMMONENGINE_DETAILED_TRACE"" in commonengine.mmp file 
       
    35 // to enable detailed trace of Commonengine.
       
    36 //
       
    37 #ifdef _RD_COMMONENGINE_DETAILED_TRACE	// Debug environment
       
    38 	#define COMMONENGINE_RDEBUG(X)				RDebug::Print(X)
       
    39 	#define COMMONENGINE_RDEBUG_SUBSTITUTE(X)	RDebug::Print(_L("%S"), &X) 	
       
    40     #define COMMONENGINE_RDEBUG_INT(X,Y)		RDebug::Print(X,Y)
       
    41     #define COMMONENGINE_RDEBUG_INT2(X,Y,Z)		RDebug::Print(X,Y,Z)
       
    42     #define COMMONENGINE_RDEBUG_INT3(X,Y,Z,Q)	RDebug::Print(X,Y,Z,Q)
       
    43     #define COMMONENGINE_RDEBUG_INT4(X,Y,Z,Q,W)	RDebug::Print(X,Y,Z,Q,W)	
       
    44   
       
    45 #else	// hw environment
       
    46 	#define COMMONENGINE_RDEBUG(X)	
       
    47 	#define COMMONENGINE_RDEBUG_SUBSTITUTE(X)
       
    48     #define COMMONENGINE_RDEBUG_INT(X,Y)
       
    49     #define COMMONENGINE_RDEBUG_INT2(X,Y,Z)    
       
    50     #define COMMONENGINE_RDEBUG_INT3(X,Y,Z,Q)
       
    51     #define COMMONENGINE_RDEBUG_INT4(X,Y,Z,Q,W)
       
    52 	
       
    53 #endif
       
    54 
       
    55 //
       
    56 // Use "macro _RD_FEATMGR_DETAILED_TRACE" in featmgr.mmp file 
       
    57 // to enable detailed trace of FeatureManager.
       
    58 //
       
    59 #ifdef _RD_FEATMGR_DETAILED_TRACE	// Debug build
       
    60 	#define FEATMGR_RDEBUG(X)						RDebug::Print(X)		
       
    61     #define FEATMGR_RDEBUG_INT(X,Y)					RDebug::Print(X,Y)
       
    62     
       
    63 #else	// hw environment
       
    64 	#define FEATMGR_RDEBUG(X)
       
    65 	#define FEATMGR_RDEBUG_INT(X,Y)	
       
    66     		
       
    67 #endif
       
    68 
       
    69 
       
    70             
       
    71 // End of File