From 6d516e09b31ec6c9a6b3975ab0f83091e3999ce6 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 17 Feb 2000 12:16:41 +0000 Subject: [PATCH] wxSysErrorCode/Msg documented git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/latex/wx/function.tex | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/docs/latex/wx/function.tex b/docs/latex/wx/function.tex index 6d51624f66..701ccea152 100644 --- a/docs/latex/wx/function.tex +++ b/docs/latex/wx/function.tex @@ -2504,6 +2504,11 @@ as the last system error code ({\it errno} or {\it ::GetLastError()} depending on the platform) and the corresponding error message. The second form of this function takes the error code explitly as the first argument. +\wxheading{See also} + +\helpref{wxSysErrorCode}{wxsyserrorcode}, +\helpref{wxSysErrorMsg}{wxsyserrormsg} + \membersection{::wxLogDebug}\label{wxlogdebug} \func{void}{wxLogDebug}{\param{const char*}{ formatString}, \param{...}{}} @@ -2559,6 +2564,31 @@ trace masks. \item wxTraceOleCalls: trace OLE method calls (Win32 only) \end{itemize} +\membersection{::wxSysErrorCode}\label{wxsyserrorcode} + +\func{unsigned long}{wxSysErrorCode}{\void} + +Returns the error code from the last system call. This function uses +{\tt errno} on Unix platforms and {\tt GetLastError} under Win32. + +\wxheading{See also} + +\helpref{wxSysErrorMsg}{wxsyserrormsg}, +\helpref{wxLogSysError}{wxlogsyserror} + +\membersection{::wxSysErrorMsg}\label{wxsyserrormsg} + +\func{const wxChar *}{wxSysErrorMsg}{\param{unsigned long }{errCode = 0}} + +Returns the error message corresponding to the given system error code. If +{\it errCode} is $0$ (default), the last error code (as returned by +\helpref{wxSysErrorCode}{wxsyserrorcode}) is used. + +\wxheading{See also} + +\helpref{wxSysErrorCode}{wxsyserrorcode}, +\helpref{wxLogSysError}{wxlogsyserror} + \section{Debugging macros and functions}\label{debugmacros} Useful macros and functins for error checking and defensive programming. ASSERTs are only -- 2.45.2