[Lemon-commits] [lemon_svn] alpar: r2890 - hugo/trunk/lemon

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 21:51:03 CET 2006


Author: alpar
Date: Thu Aug 10 15:54:01 2006
New Revision: 2890

Modified:
   hugo/trunk/lemon/error.h

Log:
Doc improvements

Modified: hugo/trunk/lemon/error.h
==============================================================================
--- hugo/trunk/lemon/error.h	(original)
+++ hugo/trunk/lemon/error.h	Thu Aug 10 15:54:01 2006
@@ -582,15 +582,20 @@
 /// Macro for assertions with customizable message.
 ///
 /// The assertions are disabled in the default behaviour. You can
-/// enable the assertions with the LEMON_ENABLE_ASSERTS macro what
+/// enable the assertions with the
+/// \code
+/// #define LEMON_ENABLE_ASSERTS
+/// \endcode
+/// Then an assert
 /// provides a log on the standard error about the assertion and aborts
-/// the program.  If the LEMON_ASSERT_DO_ABORT macro is setted to false
-/// then the just the log message can be seen on the standard error but
-/// the program is not stopped. With the LEMON_ASSERT_FAILURE and
-/// LEMON_ASSERT_EXCEPTION macros you can set other behaviour to the
-/// assertions. The LEMON_ASSERT_FAILURE will always throw an \c
-/// AssertionFailedError exception with the \c msg error message. The
-/// \c LEMON_ASSERT_EXCEPTION can throw a user defined exception.
+/// the program if LEMON_ASSERT_DO_ABORT is also defined (otherwise the
+/// program keeps on running).
+/// By defining LEMON_ASSERT_FAILURE or
+/// LEMON_ASSERT_EXCEPTION, you can set other behaviour to the
+/// assertions. In case LEMON_ASSERT_FAILURE is given, LEMON_ASSERT
+/// will always throw an \c AssertionFailedError exception with
+/// the \c msg error message. By using
+/// LEMON_ASSERT_EXCEPTION, one can define an arbitrary exception to be thrown.
 ///
 /// The LEMON_ASSERT macro should be called with the \c exp parameter
 /// which should be an expression convertible to bool. If the given
@@ -600,7 +605,6 @@
 /// \ref "Exception::what" what() function is called to retrieve and
 /// display the error message.
 ///
-///
 /// \todo We should provide some way to reset to the default behaviour,
 /// shouldn't we?
 ///



More information about the Lemon-commits mailing list