... | ... |
@@ -204,58 +204,48 @@ |
204 | 204 |
/// or with compilation parameters: |
205 | 205 |
/// \code |
206 | 206 |
/// g++ -DLEMON_ENABLE_DEBUG |
207 | 207 |
/// make CXXFLAGS='-DLEMON_ENABLE_DEBUG' |
208 | 208 |
/// \endcode |
209 | 209 |
/// |
210 | 210 |
/// This macro works like the \c LEMON_ASSERT macro, therefore the |
211 | 211 |
/// current behaviour depends on the settings of \c LEMON_ASSERT |
212 | 212 |
/// macro. |
213 | 213 |
/// |
214 | 214 |
/// \see LEMON_ASSERT |
215 | 215 |
# define LEMON_DEBUG(exp, msg) \ |
216 | 216 |
(static_cast<void> (!!(exp) ? 0 : ( \ |
217 | 217 |
LEMON_ASSERT_HANDLER(__FILE__, __LINE__, \ |
218 | 218 |
LEMON_FUNCTION_NAME, \ |
219 | 219 |
::lemon::_assert_bits::cstringify(msg), #exp), 0))) |
220 | 220 |
|
221 | 221 |
#else |
222 | 222 |
|
223 | 223 |
# ifndef LEMON_ASSERT_HANDLER |
224 | 224 |
# define LEMON_ASSERT(exp, msg) (static_cast<void>(0)) |
225 | 225 |
# define LEMON_FIXME(msg) (static_cast<void>(0)) |
226 | 226 |
# define LEMON_DEBUG(exp, msg) (static_cast<void>(0)) |
227 | 227 |
# else |
228 | 228 |
# define LEMON_ASSERT(exp, msg) \ |
229 | 229 |
(static_cast<void> (!!(exp) ? 0 : ( \ |
230 | 230 |
LEMON_ASSERT_HANDLER(__FILE__, __LINE__, \ |
231 | 231 |
LEMON_FUNCTION_NAME, \ |
232 | 232 |
::lemon::_assert_bits::cstringify(msg), \ |
233 | 233 |
#exp), 0))) |
234 | 234 |
# define LEMON_FIXME(msg) \ |
235 | 235 |
(LEMON_ASSERT_HANDLER(__FILE__, __LINE__, LEMON_FUNCTION_NAME, \ |
236 | 236 |
::lemon::_assert_bits::cstringify(msg), \ |
237 | 237 |
static_cast<const char*>(0))) |
238 | 238 |
|
239 | 239 |
# if LEMON_ENABLE_DEBUG |
240 | 240 |
# define LEMON_DEBUG(exp, msg) |
241 | 241 |
(static_cast<void> (!!(exp) ? 0 : ( \ |
242 | 242 |
LEMON_ASSERT_HANDLER(__FILE__, __LINE__, \ |
243 | 243 |
LEMON_FUNCTION_NAME, \ |
244 | 244 |
::lemon::_assert_bits::cstringify(msg), \ |
245 | 245 |
#exp), 0))) |
246 | 246 |
# else |
247 | 247 |
# define LEMON_DEBUG(exp, msg) (static_cast<void>(0)) |
248 | 248 |
# endif |
249 | 249 |
# endif |
250 | 250 |
|
251 | 251 |
#endif |
252 |
|
|
253 |
#ifdef DOXYGEN |
|
254 |
|
|
255 |
|
|
256 |
#else |
|
257 |
|
|
258 |
|
|
259 |
#endif |
|
260 |
|
|
261 |
|
0 comments (0 inline)