systemswstubs/startupadaptationstub/inc/StartupAdaptationStubDebug.h
changeset 46 e1758cbb96ac
parent 0 0ce1b5ce9557
equal deleted inserted replaced
43:e71858845f73 46:e1758cbb96ac
       
     1 /*
       
     2 * Copyright (c) 2004-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:  Macros for debugging.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __STARTUPADAPTATIONSTUBDEBUG_H__
       
    21 #define __STARTUPADAPTATIONSTUBDEBUG_H__
       
    22 
       
    23 // MACROS
       
    24 #ifdef _DEBUG
       
    25     #include <e32svr.h>
       
    26     #define ERROR_DEBUG(X)           RDebug::Print(X)
       
    27     #define ERROR_DEBUG_1(X,Y1)      RDebug::Print(X,Y1)
       
    28     #define ERROR_DEBUG_2(X,Y1,Y2)   RDebug::Print(X,Y1,Y2)
       
    29 #else
       
    30     #define ERROR_DEBUG(X)
       
    31     #define ERROR_DEBUG_1(X,Y)
       
    32     #define ERROR_DEBUG_2(X,Y1,Y2)
       
    33 #endif
       
    34 
       
    35 #if defined _DEBUG && defined __TRACE_ALL__
       
    36     #include <e32svr.h>
       
    37     #define RDEBUG(X)           RDebug::Print(X)
       
    38     #define RDEBUG_1(X,Y1)      RDebug::Print(X,Y1)
       
    39     #define RDEBUG_2(X,Y1,Y2)   RDebug::Print(X,Y1,Y2)
       
    40 #else
       
    41     #define RDEBUG(X)
       
    42     #define RDEBUG_1(X,Y)
       
    43     #define RDEBUG_2(X,Y1,Y2)
       
    44 #endif
       
    45 
       
    46 #endif // __STARTUPADAPTATIONSTUBDEBUG_H__
       
    47 
       
    48 // End of File