1 /* |
1 /* |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009 - 2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
26 void TraceFunc( TRefByValue<const TDesC16> aFmt, ... ); |
26 void TraceFunc( TRefByValue<const TDesC16> aFmt, ... ); |
27 |
27 |
28 #define ASSERT_ALWAYS_TRACE AssertTraceFunc( _L8( __FILE__ ), __LINE__ ) |
28 #define ASSERT_ALWAYS_TRACE AssertTraceFunc( _L8( __FILE__ ), __LINE__ ) |
29 #define ASSERT_TRACE( a ) if( !( a ) ) { ASSERT_ALWAYS_TRACE; } |
29 #define ASSERT_TRACE( a ) if( !( a ) ) { ASSERT_ALWAYS_TRACE; } |
30 #define ERROR_TRACE_1( a, b ) TraceFunc( _L( a ), b ) |
30 #define ERROR_TRACE_1( a, b ) TraceFunc( _L( a ), b ) |
|
31 #define ERROR_TRACE_2( a, b, c ) TraceFunc( _L( a ), b,c ) |
31 #else |
32 #else |
32 #define ASSERT_ALWAYS_TRACE |
33 #define ASSERT_ALWAYS_TRACE |
33 #define ASSERT_TRACE( a ) |
34 #define ASSERT_TRACE( a ) |
34 #define ERROR_TRACE_1( a, b ) |
35 #define ERROR_TRACE_1( a, b ) |
|
36 #define ERROR_TRACE_2( a, b, c ) |
35 #endif |
37 #endif |
36 |
38 |
37 #if defined _DEBUG && defined __SYSLANG_TRACE__ |
39 #if defined _DEBUG && defined __SYSLANG_TRACE__ |
38 void FuncEntryTrace( const TDesC8& aFunction, TBool aPrintCaller ); |
40 void FuncEntryTrace( const TDesC8& aFunction, TBool aPrintCaller ); |
39 void FuncExitTrace( const TDesC8& aFunction ); |
41 void FuncExitTrace( const TDesC8& aFunction ); |