Ticket #6451: assert.html.patch

File assert.html.patch, 3.4 KB (added by Antony Polukhin, 11 years ago)
  • assert.html

     
    3737                <P>If the macro <STRONG>BOOST_ENABLE_ASSERT_HANDLER</STRONG> is defined when <STRONG>&lt;boost/assert.hpp&gt;</STRONG>
    3838                        is included, <tt>BOOST_ASSERT(expr)</tt> evaluates <b>expr</b> and, if the
    3939                        result is false, evaluates the expression</P>
     40        <P> <b>BOOST_ASSERT_CURRENT_FUNCTION_NAME</b> defines the macro, used to get current function name.
     41        It defaults to <a href="current_function.html">BOOST_CURRENT_FUNCTION</a>.
     42        <code>BOOST_CURRENT_FUNCTION</code> can produce very long names, that may lead to huge size of output files.
     43        Users may define <b>BOOST_ASSERT_CURRENT_FUNCTION_NAME</b> before including <STRONG>&lt;boost/assert.hpp&gt;</STRONG>
     44        to specify a different current function macro (for example to shorter but not portable __FUNCTION__ macro or to
     45        "(unknown)" value).&nbsp; </P>
    4046                <blockquote>
    41                 <P><tt>::boost::assertion_failed(#expr, <a href="current_function.html">BOOST_CURRENT_FUNCTION</a>,
     47                <P><tt>::boost::assertion_failed(#expr, BOOST_ASSERT_CURRENT_FUNCTION_NAME,
    4248                                __FILE__, __LINE__)</tt></P>
    4349                </blockquote>
    4450                <P><STRONG>assertion_failed</STRONG> is declared in <STRONG>&lt;boost/assert.hpp&gt;</STRONG>
    … …  
    6874        defined or <code>expr</code> evaluates to <code>true</code>. If those
    6975        macros and <STRONG>BOOST_ENABLE_ASSERT_HANDLER</STRONG> are not
    7076        defined, and <code>expr</code> evaluates to <code>false</code>, an error
    71         message that includes <tt>#expr</tt>, <tt>msg</tt>, <tt> <a href="current_function.html">BOOST_CURRENT_FUNCTION</a></tt>, <tt>
     77        message that includes <tt>#expr</tt>, <tt>msg</tt>, <tt> BOOST_ASSERT_MSG_CURRENT_FUNCTION_NAME </tt>, <tt>
    7278        __FILE__</tt>, and <tt>__LINE__</tt> is sent to output stream <b>
    7379        BOOST_ASSERT_MSG_OSTREAM</b>
    7480        and <code>std::abort()</code> is called.</P>
     81        <P> <b>BOOST_ASSERT_MSG_CURRENT_FUNCTION_NAME</b> defines the macro, used to get current function name.
     82        It defaults to <a href="current_function.html">BOOST_CURRENT_FUNCTION</a>.
     83        <code>BOOST_CURRENT_FUNCTION</code> can produce very long names, that may lead to huge size of output files.
     84        Users may define <b>BOOST_ASSERT_MSG_CURRENT_FUNCTION_NAME</b> before including <STRONG>&lt;boost/assert.hpp&gt;</STRONG>
     85        to specify a different current function macro (for example to shorter but not portable __FUNCTION__ macro or to
     86        "(unknown)" value).&nbsp; </P>
    7587                <P> <b>BOOST_ASSERT_MSG_OSTREAM</b> defines the output stream. It defaults to <code>std::cerr</code>.
    7688        Integrated development environments (IDE's) like Microsoft Visual Studio
    7789        may produce easier to understand output if messages go to a different
    … …  
    8193                        is included, instead of sending a error message to an output
    8294        stream, this expression is evaluated</P>
    8395                <blockquote>
    84                 <P><tt>::boost::assertion_failed_msg(#expr, msg, <a href="current_function.html">BOOST_CURRENT_FUNCTION</a>,
     96                <P><tt>::boost::assertion_failed_msg(#expr, msg, BOOST_ASSERT_MSG_CURRENT_FUNCTION_NAME,
    8597                                __FILE__, __LINE__)</tt></P>
    8698                </blockquote>
    8799                <P><STRONG>assertion_failed_msg</STRONG> is declared in <STRONG>&lt;boost/assert.hpp&gt;</STRONG>