|
1 // Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalTechnology |
|
19 */ |
|
20 |
|
21 #ifndef DEBUG_H |
|
22 #define DEBUG_H |
|
23 |
|
24 #define _STACK_DEBUG_PRINT_ |
|
25 |
|
26 #if defined(_STACK_DEBUG_PRINT_) && (defined(_DEBUG) || defined(_DEBUG_RELEASE)) |
|
27 /** Trace - format string */ |
|
28 #define __PRINT(t) {Kern::Printf(t);} |
|
29 /** Trace - format string with 1 param */ |
|
30 #define __PRINT1(t,a) {Kern::Printf(t,a);} |
|
31 /** Trace - format string with 2 params */ |
|
32 #define __PRINT2(t,a,b) {Kern::Printf(t,a,b);} |
|
33 /** Trace - format string with 3 params */ |
|
34 #define __PRINT3(t,a,b,c) {Kern::Printf(t,a,b,c);} |
|
35 /** Trace - format string with 4 params */ |
|
36 #define __PRINT4(t,a,b,c,d) {Kern::Printf(t,a,b,c,d);} |
|
37 /** Trace - format string with 5 params */ |
|
38 #define __PRINT5(t,a,b,c,d,e) {Kern::Printf(t,a,b,c,d,e);} |
|
39 |
|
40 #else |
|
41 |
|
42 /** NULL definition */ |
|
43 #define __PRINT(t) |
|
44 /** NULL definition */ |
|
45 #define __PRINT1(t,a) |
|
46 /** NULL definition */ |
|
47 #define __PRINT2(t,a,b) |
|
48 /** NULL definition */ |
|
49 #define __PRINT3(t,a,b,c) |
|
50 /** NULL definition */ |
|
51 #define __PRINT4(t,a,b,c,d) |
|
52 /** NULL definition */ |
|
53 #define __PRINT5(t,a,b,c,d,e) |
|
54 #endif |
|
55 |
|
56 #endif // DEBUG_H |