systemswuis/touchscreencalib/tscstartupextensionplugin/inc/tscstartupextensionplugindef.h
branchRCL_3
changeset 13 90fe62538f66
parent 12 3fec62e6e7fc
child 14 5f281e37a2f5
equal deleted inserted replaced
12:3fec62e6e7fc 13:90fe62538f66
     1 /*
       
     2 * Copyright (c) 2007 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 TSCStartupExtensionPlugIn
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef TSCSTARTUPEXTENSIONPLUGINDEF_H
       
    20 #define TSCSTARTUPEXTENSIONPLUGINDEF_H
       
    21 
       
    22 #include <e32debug.h>
       
    23 
       
    24 //CONSTANTS
       
    25 _LIT( KTouchScreenCalibAppName, "TSCStartupExtensionPlugIn" );  
       
    26 
       
    27 // MACROS
       
    28 
       
    29 #define PANIC(aPanic) User::Panic( KTouchScreenCalibAppName, aPanic )
       
    30 
       
    31 #define TRACE_ADDPREFIX(aText) (TPtrC((const TText *)L"TSCStartupExtensionPlugIn: \"" L##aText L"\""))
       
    32 
       
    33 #ifdef _DEBUG
       
    34 #define TRACES(aMsg) RDebug::Print( TRACE_ADDPREFIX(aMsg) )
       
    35 #define TRACES1(aFormat,aP1) RDebug::Print( TRACE_ADDPREFIX(aFormat),(aP1) )
       
    36 #define TRACES2(aFormat,aP1,aP2) RDebug::Print( TRACE_ADDPREFIX(aFormat),(aP1),(aP2) )
       
    37 #define TRACES3(aFormat,aP1,aP2,aP3) RDebug::Print( TRACE_ADDPREFIX(aFormat),(aP1),(aP2),(aP3) )
       
    38 #else
       
    39 #define TRACES(aMsg)
       
    40 #define TRACES1(aFormat,aP1)
       
    41 #define TRACES2(aFormat,aP1,aP2)
       
    42 #define TRACES3(aFormat,aP1,aP2,aP3)
       
    43 #endif
       
    44 #endif      // TSCSTARTUPEXTENSIONPLUGINDEF_H
       
    45             
       
    46 // End of File