src/lemon/error.h
changeset 1280 f2255b96c19c
parent 1213 6cc106135d31
child 1359 1581f961cfaa
equal deleted inserted replaced
8:3f428cc56104 9:5bca8aeed715
   511  *
   511  *
   512  * \todo This whole 'assert' business should be placed in a separate
   512  * \todo This whole 'assert' business should be placed in a separate
   513  * include file.
   513  * include file.
   514  *
   514  *
   515  * \todo __PRETTY_FUNCTION__ should be replaced by something
   515  * \todo __PRETTY_FUNCTION__ should be replaced by something
   516  * compiler-independant, like BOOST_CURRENT_FUNCTION
   516  * compiler-independent, like BOOST_CURRENT_FUNCTION
   517  */
   517  */
   518 
   518 
   519 #  define LEMON_ASSERT(exp, msg)                 \
   519 #  define LEMON_ASSERT(exp, msg)                 \
   520      (static_cast<void> (!!(exp) ? 0 : (         \
   520      (static_cast<void> (!!(exp) ? 0 : (         \
   521        LEMON_ASSERT_HANDLER(__FILE__, __LINE__,  \
   521        LEMON_ASSERT_HANDLER(__FILE__, __LINE__,  \
   529  *
   529  *
   530  * \todo Is this the right place for this? It should be used only in
   530  * \todo Is this the right place for this? It should be used only in
   531  * modules under development.
   531  * modules under development.
   532  *
   532  *
   533  * \todo __PRETTY_FUNCTION__ should be replaced by something
   533  * \todo __PRETTY_FUNCTION__ should be replaced by something
   534  * compiler-independant, like BOOST_CURRENT_FUNCTION
   534  * compiler-independent, like BOOST_CURRENT_FUNCTION
   535  */
   535  */
   536 
   536 
   537 # define LEMON_FIXME(msg) \
   537 # define LEMON_FIXME(msg) \
   538     (LEMON_ASSERT_HANDLER(__FILE__, __LINE__, __PRETTY_FUNCTION__, \
   538     (LEMON_ASSERT_HANDLER(__FILE__, __LINE__, __PRETTY_FUNCTION__, \
   539 			  "FIXME: " msg))
   539 			  "FIXME: " msg))