]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Docs: Clarify availability of PyOS_CheckStack (GH-91816)
authorPetr Viktorin <encukou@gmail.com>
Fri, 22 Apr 2022 10:44:43 +0000 (12:44 +0200)
committerGitHub <noreply@github.com>
Fri, 22 Apr 2022 10:44:43 +0000 (12:44 +0200)
Doc/c-api/sys.rst
Include/pythonrun.h

index de94e3f0180f0aeb9cbce8b293a023d006024d25..66216eee6d06ed6f845e4e7140f479ff1880ef27 100644 (file)
@@ -96,9 +96,9 @@ Operating System Utilities
 
    Return true when the interpreter runs out of stack space.  This is a reliable
    check, but is only available when :const:`USE_STACKCHECK` is defined (currently
-   on Windows using the Microsoft Visual C++ compiler).  :const:`USE_STACKCHECK`
-   will be defined automatically; you should never change the definition in your
-   own code.
+   on certain versions of Windows using the Microsoft Visual C++ compiler).
+   :const:`USE_STACKCHECK` will be defined automatically; you should never
+   change the definition in your own code.
 
 
 .. c:function:: PyOS_sighandler_t PyOS_getsig(int i)
index 02715775581c6321edf163a9768b790eb1388f8a..1b208b734ab1bfe4dd42f916a04de5a38441443f 100644 (file)
@@ -24,6 +24,7 @@ PyAPI_DATA(int) (*PyOS_InputHook)(void);
 
 #if defined(WIN32) && !defined(MS_WIN64) && !defined(_M_ARM) && defined(_MSC_VER) && _MSC_VER >= 1300
 /* Enable stack checking under Microsoft C */
+// When changing the platforms, ensure PyOS_CheckStack() docs are still correct
 #define USE_STACKCHECK
 #endif