systemswuis/touchscreencalib/tsccustcmds/inc/tscstartupextensiondef.h
changeset 0 254040eb3b7d
equal deleted inserted replaced
-1:000000000000 0:254040eb3b7d
       
     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 TSCStartupExtension
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef TSCSTARTUPEXTENSIONDEF_H
       
    19 #define TSCSTARTUPEXTENSIONDEF_H
       
    20 
       
    21 #include <e32debug.h>
       
    22 
       
    23 //CONSTANTS
       
    24 _LIT( KTouchScreenCalibAppName, "TSCStartupExtension" );  
       
    25 
       
    26 // MACROS
       
    27 
       
    28 #define PANIC(aPanic) User::Panic( KTouchScreenCalibAppName, aPanic )
       
    29 
       
    30 #define TRACE_ADDPREFIX(aText) (TPtrC((const TText *)L"TSCStartupExtension: \"" L##aText L"\""))
       
    31 
       
    32 #ifdef _DEBUG
       
    33 #define TRACES(aMsg) RDebug::Print( TRACE_ADDPREFIX(aMsg) )
       
    34 #define TRACES1(aFormat,aP1) RDebug::Print( TRACE_ADDPREFIX(aFormat),(aP1) )
       
    35 #define TRACES2(aFormat,aP1,aP2) RDebug::Print( TRACE_ADDPREFIX(aFormat),(aP1),(aP2) )
       
    36 #define TRACES3(aFormat,aP1,aP2,aP3) RDebug::Print( TRACE_ADDPREFIX(aFormat),(aP1),(aP2),(aP3) )
       
    37 #else
       
    38 #define TRACES(aMsg)
       
    39 #define TRACES1(aFormat,aP1)
       
    40 #define TRACES2(aFormat,aP1,aP2)
       
    41 #define TRACES3(aFormat,aP1,aP2,aP3)
       
    42 #endif
       
    43 #endif      // TSCSTARTUPEXTENSIONDEF_H
       
    44             
       
    45 // End of File