new wxASSERT implementation using wxAssert() helper function
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15827 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -238,7 +238,7 @@ Returns 0 under X, and the wParam of the WM\_QUIT message under Windows.
|
||||
|
||||
\membersection{wxApp::OnAssert}\label{wxapponassert}
|
||||
|
||||
\func{void}{OnAssert}{\param{const wxChar }{*file}, \param{int }{line}, \param{const wxChar }{*msg}}
|
||||
\func{void}{OnAssert}{\param{const wxChar }{*file}, \param{int }{line}, \param{const wxChar }{*cond}, \param{const wxChar }{*msg}}
|
||||
|
||||
This function is called when an assert failure occurs, i.e. the condition
|
||||
specified in \helpref{wxASSERT}{wxassert} macro evaluated to {\tt FALSE}.
|
||||
@@ -254,6 +254,8 @@ the user to stop the program, continue or ignore all subsequent asserts.
|
||||
|
||||
\docparam{line}{the line number in this file where the assert occured}
|
||||
|
||||
\docparam{cond}{the condition of the failed assert in string form}
|
||||
|
||||
\docparam{msg}{the message specified as argument to
|
||||
\helpref{wxASSERT\_MSG}{wxassertmsg} or \helpref{wxFAIL\_MSG}{wxfailmsg}, will
|
||||
be {\tt NULL} if just \helpref{wxASSERT}{wxassert} or \helpref{wxFAIL}{wxfail}
|
||||
|
@@ -3435,7 +3435,7 @@ compilation error messages if the condition they check fail.
|
||||
|
||||
\membersection{::wxOnAssert}\label{wxonassert}
|
||||
|
||||
\func{void}{wxOnAssert}{\param{const char *}{fileName}, \param{int}{ lineNumber}, \param{const char *}{msg = NULL}}
|
||||
\func{void}{wxOnAssert}{\param{const char *}{fileName}, \param{int}{ lineNumber}, \param{const char *}{cond}, \param{const char *}{msg = NULL}}
|
||||
|
||||
This function is called whenever one of debugging macros fails (i.e. condition
|
||||
is false in an assertion). It is only defined in the debug mode, in release
|
||||
|
Reference in New Issue
Block a user