Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: src/plugin/Config.h

Issue 5948518908821504: Issue #1158 - removed unnecessary definitions and #ifdef/#else/#endif sections (Closed)
Patch Set: Created Aug. 6, 2014, 7:38 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
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:" + CStri ng(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, "!!! Error:" + CString(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
119 // ----------------------------------------------------------------------------
120
121 #if (defined PRODUCT_ADBLOCKPLUS)
122 #define SUPPORT_FILTER
123 #define SUPPORT_WHITELIST
124 #define SUPPORT_DOM_TRAVERSER
Oleksandr 2014/08/18 20:46:04 I would leave the SUPPORT_DOM_TRAVERSER here
125 #define SUPPORT_FRAME_CACHING
126 #endif
127
128 // ----------------------------------------------------------------------------
129 // Miscellaneous 118 // Miscellaneous
130 // ---------------------------------------------------------------------------- 119 // ----------------------------------------------------------------------------
131 120
132 //For debugging production build 121 //For debugging production build
133 //#define ENABLE_DEBUG_INFO 122 //#define ENABLE_DEBUG_INFO
134 123
135 // If defined, we will surround most of the methods with try catch 124 // If defined, we will surround most of the methods with try catch
136 #undef CATCHALL 125 #undef CATCHALL
137 126
138 // If defined, we will throw exceptions for errors 127 // If defined, we will throw exceptions for errors
139 // Otherwise we will try to handle it in a silent way, and only report 128 // Otherwise we will try to handle it in a silent way, and only report
140 #undef THROW_ON_ERROR 129 #undef THROW_ON_ERROR
141 130
142 // Status bar pane name 131 // Status bar pane name
143 #if (defined PRODUCT_ADBLOCKPLUS)
144 #define STATUSBAR_PANE_NAME L"AdblockPlusStatusBarPane" 132 #define STATUSBAR_PANE_NAME L"AdblockPlusStatusBarPane"
145 #endif
146 133
147 // Status bar pane number 134 // Status bar pane number
148 #if (defined PRODUCT_ADBLOCKPLUS)
149 #define STATUSBAR_PANE_NUMBER 2 135 #define STATUSBAR_PANE_NUMBER 2
150 #endif
151 136
152 #define ENGINE_STARTUP_TIMEOUT 10000 137 #define ENGINE_STARTUP_TIMEOUT 10000
153 138
154 139
155 140
156 #endif // _CONFIG_H 141 #endif // _CONFIG_H
OLDNEW
« no previous file with comments | « adblockplus.gyp ('k') | src/plugin/Plugin.cpp » ('j') | src/plugin/PluginClass.h » ('J')

Powered by Google App Engine
This is Rietveld