Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 17e6343

Browse files
committed
Document PyOS_CheckStack().
Fix a couple of really minor markup nits.
1 parent e8de31c commit 17e6343

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

Doc/api/api.tex

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -850,15 +850,16 @@ \chapter{Exception Handling \label{exceptionHandling}}
850850
temporarily.
851851
\end{cfuncdesc}
852852

853-
\begin{cfuncdesc}{void}{PyErr_Restore}{PyObject *type, PyObject *value, PyObject *traceback}
853+
\begin{cfuncdesc}{void}{PyErr_Restore}{PyObject *type, PyObject *value,
854+
PyObject *traceback}
854855
Set the error indicator from the three objects. If the error
855856
indicator is already set, it is cleared first. If the objects are
856857
\NULL{}, the error indicator is cleared. Do not pass a \NULL{} type
857858
and non-\NULL{} value or traceback. The exception type should be a
858859
string or class; if it is a class, the value should be an instance of
859860
that class. Do not pass an invalid exception type or value.
860861
(Violating these rules will cause subtle problems later.) This call
861-
takes away a reference to each object, i.e. you must own a reference
862+
takes away a reference to each object, i.e.\ you must own a reference
862863
to each object before the call and after the call you no longer own
863864
these references. (If you don't understand this, don't use this
864865
function. I warned you.) \strong{Note:} This function is normally
@@ -1062,6 +1063,15 @@ \section{OS Utilities \label{os}}
10621063
process, this function does not need to be called.
10631064
\end{cfuncdesc}
10641065

1066+
\begin{cfuncdesc}{int}{PyOS_CheckStack}{}
1067+
Return true when the interpreter runs out of stack space. This is a
1068+
reliable check, but is only available when \code{USE_STACKCHECK} is
1069+
defined (currently on Windows using the Microsoft Visual C++ compiler
1070+
and on the Macintosh). \code{USE_CHECKSTACK} will be defined
1071+
automatically; you should never change the definition in your own
1072+
code.
1073+
\end{cfuncdesc}
1074+
10651075

10661076
\section{Process Control \label{processControl}}
10671077

0 commit comments

Comments
 (0)