Left: | ||
Right: |
OLD | NEW |
---|---|
1 #ifndef _CONFIG_H | 1 #ifndef _CONFIG_H |
2 #define _CONFIG_H | 2 #define _CONFIG_H |
3 | 3 |
4 #define TIMER_THREAD_SLEEP_TAB_LOOP 10000 | 4 #define TIMER_THREAD_SLEEP_TAB_LOOP 10000 |
5 | 5 |
6 // Should we to on debug information | 6 // Should we to on debug information |
7 #ifdef _DEBUG | 7 #ifdef _DEBUG |
8 #define ENABLE_DEBUG_INFO | 8 #define ENABLE_DEBUG_INFO |
9 #define ENABLE_DEBUG_GENERAL | 9 #define ENABLE_DEBUG_GENERAL |
10 #define ENABLE_DEBUG_ERROR | 10 #define ENABLE_DEBUG_ERROR |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
97 #define DEBUG_HIDE_EL(x) DEBUG_FUNC(x); | 97 #define DEBUG_HIDE_EL(x) DEBUG_FUNC(x); |
98 #endif | 98 #endif |
99 | 99 |
100 #if (defined ENABLE_DEBUG_INFO && defined ENABLE_DEBUG_WHITELIST) | 100 #if (defined ENABLE_DEBUG_INFO && defined ENABLE_DEBUG_WHITELIST) |
101 #undef DEBUG_WHITELIST | 101 #undef DEBUG_WHITELIST |
102 #define DEBUG_WHITELIST(x) DEBUG_FUNC(x); | 102 #define DEBUG_WHITELIST(x) DEBUG_FUNC(x); |
103 #endif | 103 #endif |
104 | 104 |
105 #if (defined ENABLE_DEBUG_INFO && defined ENABLE_DEBUG_ERROR) | 105 #if (defined ENABLE_DEBUG_INFO && defined ENABLE_DEBUG_ERROR) |
106 #undef DEBUG_ERROR | 106 #undef DEBUG_ERROR |
107 #define DEBUG_ERROR(x) DEBUG_ERROR_FUNC("!!! Error:" + CString(x)); | 107 #define DEBUG_ERROR(x) DEBUG_ERROR_FUNC(std::string("!!! Error:") + x); |
sergei
2014/07/08 11:58:34
In defines it's always better to use braces, `(x)`
Eric
2014/07/08 17:46:37
Yep. It's also used exactly once in the code base.
| |
108 #undef DEBUG_ERROR_CODE | 108 #undef DEBUG_ERROR_CODE |
109 #define DEBUG_ERROR_CODE(err, x) DEBUG_ERROR_CODE_FUNC(err, "!!! Error:" + CStri ng(x)); | 109 #define DEBUG_ERROR_CODE(err, x) DEBUG_ERROR_CODE_FUNC(err, "!!! Error:" + x); |
110 #undef DEBUG_ERROR_CODE_EX | 110 #undef DEBUG_ERROR_CODE_EX |
111 #define DEBUG_ERROR_CODE_EX(err, x, process, thread) DEBUG_ERROR_CODE_FUNC(err, "!!! Error:" + CString(x), process, thread); | 111 #define DEBUG_ERROR_CODE_EX(err, x, process, thread) DEBUG_ERROR_CODE_FUNC(err, L"!!! Error:" + x, process, thread); |
112 #endif | 112 #endif |
113 | 113 |
114 #undef DEBUG_ERROR_LOG | 114 #undef DEBUG_ERROR_LOG |
115 #define DEBUG_ERROR_LOG(err, id, subid, description) CPluginClient::LogPluginErr or(err, id, subid, description); | 115 #define DEBUG_ERROR_LOG(err, id, subid, description) CPluginClient::LogPluginErr or(err, id, subid, description); |
116 | 116 |
117 // ---------------------------------------------------------------------------- | 117 // ---------------------------------------------------------------------------- |
118 // Features | 118 // Features |
119 // ---------------------------------------------------------------------------- | 119 // ---------------------------------------------------------------------------- |
120 | 120 |
121 #if (defined PRODUCT_ADBLOCKPLUS) | 121 #if (defined PRODUCT_ADBLOCKPLUS) |
(...skipping 25 matching lines...) Expand all Loading... | |
147 // Status bar pane number | 147 // Status bar pane number |
148 #if (defined PRODUCT_ADBLOCKPLUS) | 148 #if (defined PRODUCT_ADBLOCKPLUS) |
149 #define STATUSBAR_PANE_NUMBER 2 | 149 #define STATUSBAR_PANE_NUMBER 2 |
150 #endif | 150 #endif |
151 | 151 |
152 #define ENGINE_STARTUP_TIMEOUT 10000 | 152 #define ENGINE_STARTUP_TIMEOUT 10000 |
153 | 153 |
154 | 154 |
155 | 155 |
156 #endif // _CONFIG_H | 156 #endif // _CONFIG_H |
OLD | NEW |