|
1 /* |
|
2 * Copyright (c) 2001-2006 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 the License "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: EAP and WLAN authentication protocols. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #if !defined(_EAP_AM_COMPILER_FLAGS_H_) |
|
22 #define _EAP_AM_COMPILER_FLAGS_H_ |
|
23 |
|
24 #if defined(_DEBUG) || defined(DEBUG) |
|
25 |
|
26 #if !defined(USE_EAP_TRACE) |
|
27 // This macro enables most of the traces. |
|
28 #define USE_EAP_TRACE |
|
29 #endif //#if defined(USE_EAP_TRACE) |
|
30 |
|
31 #if !defined(USE_EAP_TRACE_ALWAYS) |
|
32 // This macro enables some traces for release error log. |
|
33 // EAP_TRACE_ALWAYS() and EAP_TRACE_DATA_ALWAYS() are left |
|
34 // active if USE_EAP_TRACE_ALWAYS is defined. |
|
35 #define USE_EAP_TRACE_ALWAYS |
|
36 #endif //#if !defined(USE_EAP_TRACE_ALWAYS) |
|
37 |
|
38 #if !defined(USE_EAP_DEBUG_TRACE) |
|
39 // This macro enaables debug traces. |
|
40 // Note the EAP_TRACE_ERROR() and EAP_TRACE_DATA_ERROR macroes |
|
41 // are left inactive. |
|
42 #define USE_EAP_DEBUG_TRACE |
|
43 #endif //#if defined(USE_EAP_DEBUG_TRACE) |
|
44 |
|
45 #if !defined(USE_EAP_TRACE_STRINGS) |
|
46 // This macro enables trace strings. |
|
47 // Traces does convert enumerations to readable string |
|
48 // if this is defined. |
|
49 #define USE_EAP_TRACE_STRINGS |
|
50 #endif //#if defined(USE_EAP_TRACE_STRINGS) |
|
51 |
|
52 #if !defined(USE_EAP_STATUS_RETURN) |
|
53 // This macro enables status return traces. |
|
54 // Each return does trace error status and source code file and line |
|
55 // if this is defined. |
|
56 #define USE_EAP_STATUS_RETURN |
|
57 #endif //#if defined(USE_EAP_STATUS_RETURN) |
|
58 |
|
59 #if !defined(USE_EAP_ASSERTS) |
|
60 // This macro enables all EAP assertions. |
|
61 #define USE_EAP_ASSERTS |
|
62 #endif //#if defined(USE_EAP_ASSERTS) |
|
63 |
|
64 #if !defined(USE_EAP_FILE_TRACE) |
|
65 // This macro activates file tracing. |
|
66 #define USE_EAP_FILE_TRACE |
|
67 #endif //#if !defined(USE_EAP_FILE_TRACE) |
|
68 |
|
69 #if !defined(USE_EAP_HARDWARE_TRACE) |
|
70 // This macro activates hardware traces of each platform if such exists. |
|
71 #define USE_EAP_HARDWARE_TRACE |
|
72 #endif //#if !defined(USE_EAP_HARDWARE_TRACE) |
|
73 |
|
74 #if !defined(USE_EAP_HARDWARE_TRACE_RAW_PRINT) |
|
75 // This macro activates hardware traces RAW print of each platform if such exists. |
|
76 #define USE_EAP_HARDWARE_TRACE_RAW_PRINT |
|
77 #endif //#if !defined(USE_EAP_HARDWARE_TRACE_RAW_PRINT) |
|
78 |
|
79 #else |
|
80 |
|
81 // This is release code. |
|
82 |
|
83 #if defined(USE_EAP_MINIMUM_RELEASE_TRACES) |
|
84 #if !defined(USE_EAP_TRACE_ALWAYS) |
|
85 // This macro enables some traces for release error log. |
|
86 // EAP_TRACE_ALWAYS() and EAP_TRACE_DATA_ALWAYS() are left |
|
87 // active if USE_EAP_TRACE_ALWAYS is defined. |
|
88 #define USE_EAP_TRACE_ALWAYS |
|
89 #endif //#if !defined(USE_EAP_TRACE_ALWAYS) |
|
90 |
|
91 #if !defined(USE_EAP_STATUS_RETURN) |
|
92 // This macro enables status return traces. |
|
93 // Each return does trace error status and source code file and line |
|
94 // if this is defined. |
|
95 #define USE_EAP_STATUS_RETURN |
|
96 #endif //#if defined(USE_EAP_STATUS_RETURN) |
|
97 |
|
98 #if !defined(USE_EAP_FILE_TRACE) |
|
99 // This macro activates file tracing. |
|
100 #define USE_EAP_FILE_TRACE |
|
101 #endif //#if !defined(USE_EAP_FILE_TRACE) |
|
102 #endif //#if !defined(USE_EAP_MINIMUM_RELEASE_TRACES) |
|
103 |
|
104 #endif |
|
105 |
|
106 #endif //#if !defined(_EAP_AM_COMPILER_FLAGS_H_) |
|
107 |