gravatar
kpeter (Peter Kovacs)
kpeter@inf.elte.hu
Bug fix in assert.h (ticket #125)
0 1 0
default
1 file changed with 1 insertions and 1 deletions:
↑ Collapse diff ↑
Ignore white space 48 line context
... ...
@@ -216,36 +216,36 @@
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
#      define LEMON_DEBUG(exp, msg)
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
0 comments (0 inline)