coreapplicationuis/Rfs/Plugins/GSRFSPlugin/inc/GSRFSPluginTraces.h
branchRCL_3
changeset 62 924385140d98
parent 58 0818dd463d41
child 63 c2c61fdca848
equal deleted inserted replaced
58:0818dd463d41 62:924385140d98
     1 /*
       
     2 * Copyright (c) 2002 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:  Includes some common defines used in the startup application
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef STARTUPDEFINES_H
       
    20 #define STARTUPDEFINES_H
       
    21 
       
    22 //CONSTANTS
       
    23 _LIT( KAppName, "GSRFSPlugin" );           // The application name
       
    24 
       
    25 // MACROS
       
    26 
       
    27 #define PANIC(aPanic) User::Panic( KAppName, aPanic )
       
    28 
       
    29 #define TRACE_ADDPREFIX(aText) (TPtrC((const TText *)L"GSRFSPlugin: \"" L##aText L"\""))
       
    30 
       
    31 #ifdef _DEBUG
       
    32 #define TRACES(aMsg) RDebug::Print( TRACE_ADDPREFIX(aMsg) )
       
    33 #define TRACES1(aFormat,aP1) RDebug::Print( TRACE_ADDPREFIX(aFormat),(aP1) )
       
    34 #define TRACES2(aFormat,aP1,aP2) RDebug::Print( TRACE_ADDPREFIX(aFormat),(aP1),(aP2) )
       
    35 #define TRACES3(aFormat,aP1,aP2,aP3) RDebug::Print( TRACE_ADDPREFIX(aFormat),(aP1),(aP2),(aP3) )
       
    36 #else
       
    37 #define TRACES(aMsg)
       
    38 #define TRACES1(aFormat,aP1)
       
    39 #define TRACES2(aFormat,aP1,aP2)
       
    40 #define TRACES3(aFormat,aP1,aP2,aP3)
       
    41 #endif
       
    42 #endif      // STARTUPDEFINES_H
       
    43             
       
    44 // End of File