equal
deleted
inserted
replaced
|
1 // btdebug.h |
|
2 // |
|
3 // Copyright (c) 2008 - 2010 Accenture. All rights reserved. |
|
4 // This component and the accompanying materials are made available |
|
5 // under the terms of the "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 // Accenture - Initial contribution |
|
11 // |
|
12 |
|
13 #ifndef __BTDEBUG_H__ |
|
14 #define __BTDEBUG_H__ |
|
15 |
|
16 //#define _DEBUG_BT |
|
17 |
|
18 #define EXPAND(L, X) L(X) |
|
19 #define PANIC() User::Panic(EXPAND(_L, __FILE__), __LINE__) |
|
20 #define CHECK(fn) {TInt _err = (fn); if (_err!=KErrNone) return _err; } |
|
21 |
|
22 #ifdef _DEBUG_BT |
|
23 #include <e32debug.h> |
|
24 #define TRACE1(x) RDebug::Printf(x) |
|
25 #define TRACE2(x, y) RDebug::Printf(x, y) |
|
26 #define TRACE3(x, y, z) RDebug::Printf(x, y, z) |
|
27 #define _BTDEB(x) x |
|
28 #else |
|
29 #define TRACE1(x) |
|
30 #define TRACE2(x, y) |
|
31 #define TRACE3(x, y, z) |
|
32 #define _BTDEB(x) |
|
33 #endif |
|
34 |
|
35 #endif //__BTDEBUG_H__ |