X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8f5d910492b0ffbccf3caf4b57eec434377a1314..9ef63a4a59eccce6cd8787f0ed966bfa8365a22e:/docs/latex/wx/function.tex diff --git a/docs/latex/wx/function.tex b/docs/latex/wx/function.tex index 48c0b6e448..3195976b5d 100644 --- a/docs/latex/wx/function.tex +++ b/docs/latex/wx/function.tex @@ -41,6 +41,7 @@ the corresponding topic. \helpref{wxCloseClipboard}{wxcloseclipboard}\\ \helpref{wxColourDisplay}{wxcolourdisplay}\\ \helpref{wxCOMPILE\_TIME\_ASSERT}{wxcompiletimeassert}\\ +\helpref{wxCOMPILE\_TIME\_ASSERT2}{wxcompiletimeassert2}\\ \helpref{wxConcatFiles}{wxconcatfiles}\\ \helpref{wxConstCast}{wxconstcast}\\ \helpref{wxCopyFile}{wxcopyfile}\\ @@ -429,8 +430,16 @@ processes. \func{long}{wxExecute}{\param{const wxString\& }{command}, \param{wxArrayString\& }{output}} +\perlnote{In wxPerl this function only takes the {\tt command} argument, +and returns a 2-element list {\tt ( status, output )}, where {\tt output} is +an array reference.} + \func{long}{wxExecute}{\param{const wxString\& }{command}, \param{wxArrayString\& }{output}, \param{wxArrayString\& }{errors}} +\perlnote{In wxPerl this function only takes the {\tt command} argument, +and returns a 3-element list {\tt ( status, output, errors )}, where +{\tt output} and {\tt errors} are array references.} + Executes another program in Unix or Windows. The first form takes a command string, such as {\tt "emacs file.txt"}. @@ -3369,7 +3378,7 @@ because it will not be executed in release mode at all. \func{}{wxASSERT\_MIN\_BITSIZE}{\param{}{type}, \param{}{size}} This macro results in a -\helpref{compile time assertion failure}{wxCOMPILE\_TIME\_ASSERT} if the size +\helpref{compile time assertion failure}{wxcompiletimeassert} if the size of the given type {\it type} is less than {\it size} bits. You may use it like this, for example: @@ -3398,7 +3407,7 @@ Assert macro with message. An error message will be generated if the condition i \func{}{wxCOMPILE\_TIME\_ASSERT}{\param{}{condition}, \param{}{msg}} Using {\tt wxCOMPILE\_TIME\_ASSERT} results in a compilation error if the -specified {\it condition| is false. The compiler error message should include +specified {\it condition} is false. The compiler error message should include the {\it msg} identifier - please note that it must be a valid C++ identifier and not a string unlike in the other cases. @@ -3406,11 +3415,26 @@ This macro is mostly useful for testing the expressions involing the {\tt sizeof} operator as they can't be tested by the preprocessor but it is sometimes desirable to test them at the compile time. +Note that this macro internally declares a struct whose name it tries to make +unique by using the {\tt \_\_LINE\_\_} in it but it may still not work if you +use it on the same line in two different source files. In this case you may +either change the line in which either of them appears on or use the +\helpref{wxCOMPILE\_TIME\_ASSERT2}{wxcompiletimeassert2} macro. + \wxheading{See also} \helpref{wxASSERT\_MSG}{wxassertmsg},\\ \helpref{wxASSERT\_MIN\_BITSIZE}{wxassertminbitsize} +\membersection{wxCOMPILE\_TIME\_ASSERT2}\label{wxcompiletimeassert2} + +\func{}{wxCOMPILE\_TIME\_ASSERT}{\param{}{condition}, \param{}{msg}, \param{}{name}} + +This macro is identical to \helpref{wxCOMPILE\_TIME\_ASSERT2}{wxcompiletimeassert2} +except that it allows you to specify a unique {\it name} for the struct +internally defined by this macro to avoid getting the compilation errors +described \helpref{above}{wxcompiletimeassert}. + \membersection{wxFAIL}\label{wxfail} \func{}{wxFAIL}{\void}