41
|
1 |
/*
|
|
2 |
* Copyright (c) 2010 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:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
/*
|
|
18 |
* ExtraCppFile.cpp
|
|
19 |
*
|
|
20 |
* Created on: Dec 7, 2009
|
|
21 |
* Author: cajagu
|
|
22 |
*/
|
|
23 |
|
|
24 |
#include "MultipleMmpTraceErrorApp.h"
|
|
25 |
#include "OstTraceDefinitions.h"
|
|
26 |
#ifdef OST_TRACE_COMPILER_IN_USE
|
|
27 |
#include "ExtraCppFile2Traces.h"
|
|
28 |
#endif
|
|
29 |
|
|
30 |
void CallSomeMoreTraceStatements()
|
|
31 |
{
|
|
32 |
TInt32 x = 555;
|
|
33 |
TUint32 y = 666;
|
|
34 |
|
|
35 |
//In these two cases Trace Compiler should give a error that an extension macro isn't necessary:
|
|
36 |
//"TraceErrorApp.cpp, line xx: Trace does not need to use extension macro"
|
|
37 |
OstTraceExt1( TRACE_FLOW, TEST1_CALLMORE, "CallSomeMoreTraceStatements(): x=%d" , x );
|
|
38 |
OstTraceExt1( TRACE_FLOW, TEST2_CALLMORE, "CallSomeMoreTraceStatements(): y=%u" , y );
|
|
39 |
|
|
40 |
//Wrong API i.e more parameters than it takes
|
|
41 |
//"TraceErrorApp.cpp, line xx: Parameter count does not match the format specification"
|
|
42 |
OstTrace0( TRACE_FLOW, TEST3_CALLMORE, "CallSomeMoreTraceStatements(): x=%d" ,x);
|
|
43 |
}
|