AppInc/debug2.h
changeset 3 93fff7023be8
equal deleted inserted replaced
2:e1e28b0273b0 3:93fff7023be8
       
     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: Juha Kauppinen, Mika Hokkanen
       
    13 * 
       
    14 * Description: Photo Browser
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __DEBUG_H__
       
    19 #define __DEBUG_H__
       
    20 
       
    21 //  - INCLUDES ------------------------
       
    22 #include <e32debug.h>
       
    23 
       
    24 //  - NAMESPACE -----------------------
       
    25 
       
    26 //  - MACROS --------------------------
       
    27 
       
    28 // Check that D_FLOW is defined
       
    29 #ifndef D_FLOW
       
    30 #warning D_FLOW not defined!
       
    31 #define D_FLOW 0
       
    32 #endif
       
    33 
       
    34 // Small debug functions
       
    35 #define DebugIn()				if (DEBUG && D_FLOW)	RDebug::Printf("> %s", __FUNCTION__)
       
    36 #define DebugOut()				if (DEBUG && D_FLOW)	RDebug::Printf("< %s", __FUNCTION__)
       
    37 #define DebugInD(fmt,args...)	if (DEBUG && D_FLOW)	RDebug::Printf("> %s: "fmt, __FUNCTION__, ##args)
       
    38 #define DebugOutD(fmt,args...)	if (DEBUG && D_FLOW)	RDebug::Printf("< %s: "fmt, __FUNCTION__, ##args)
       
    39 #define DebugAt(X, fmt,args...)	if (DEBUG && X)			RDebug::Printf("= %s: "fmt, __FUNCTION__, ##args)
       
    40 
       
    41 //  - CONSTANTS -----------------------
       
    42 
       
    43 //  - EXTERNAL DATA -------------------
       
    44 
       
    45 //  - FORWARD DECLARATIONS ------------
       
    46 
       
    47 //  - DATA TYPES ----------------------
       
    48 
       
    49 //  - FUNCTION DECLARATIONS -----------
       
    50 
       
    51 //  - Inline Functions ----------------
       
    52 
       
    53 #endif // __DEBUG_H__
       
    54 
       
    55 // End of File
       
    56