tracefw/tracecompiler/test/MultipleMmpTraceErrorApps/src/ExtraCppFile2.cpp
author hgs
Mon, 23 Aug 2010 15:29:36 +0300
changeset 41 838cdffd57ce
permissions -rw-r--r--
201031
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
41
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
hgs
parents:
diff changeset
    14
* Description: 
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
/*
hgs
parents:
diff changeset
    18
 * ExtraCppFile.cpp
hgs
parents:
diff changeset
    19
 *
hgs
parents:
diff changeset
    20
 *  Created on: Dec 7, 2009
hgs
parents:
diff changeset
    21
 *      Author: cajagu
hgs
parents:
diff changeset
    22
 */
hgs
parents:
diff changeset
    23
hgs
parents:
diff changeset
    24
#include "MultipleMmpTraceErrorApp.h"
hgs
parents:
diff changeset
    25
#include "OstTraceDefinitions.h"
hgs
parents:
diff changeset
    26
#ifdef OST_TRACE_COMPILER_IN_USE
hgs
parents:
diff changeset
    27
#include "ExtraCppFile2Traces.h"
hgs
parents:
diff changeset
    28
#endif
hgs
parents:
diff changeset
    29
hgs
parents:
diff changeset
    30
void CallSomeMoreTraceStatements()
hgs
parents:
diff changeset
    31
    {
hgs
parents:
diff changeset
    32
    TInt32 x = 555;
hgs
parents:
diff changeset
    33
    TUint32 y = 666;
hgs
parents:
diff changeset
    34
    
hgs
parents:
diff changeset
    35
    //In these two cases Trace Compiler should give a error that an extension macro isn't necessary:
hgs
parents:
diff changeset
    36
    //"TraceErrorApp.cpp, line xx: Trace does not need to use extension macro"
hgs
parents:
diff changeset
    37
    OstTraceExt1( TRACE_FLOW, TEST1_CALLMORE, "CallSomeMoreTraceStatements(): x=%d" , x );
hgs
parents:
diff changeset
    38
    OstTraceExt1( TRACE_FLOW, TEST2_CALLMORE, "CallSomeMoreTraceStatements(): y=%u" , y );
hgs
parents:
diff changeset
    39
    
hgs
parents:
diff changeset
    40
    //Wrong API i.e more parameters than it takes
hgs
parents:
diff changeset
    41
    //"TraceErrorApp.cpp, line xx: Parameter count does not match the format specification"
hgs
parents:
diff changeset
    42
    OstTrace0( TRACE_FLOW, TEST3_CALLMORE, "CallSomeMoreTraceStatements(): x=%d" ,x);
hgs
parents:
diff changeset
    43
    }