Skip to content

Commit 82ec638

Browse files
authored
Docs: Clarify availability of PyOS_CheckStack (GH-91816)
1 parent bcf14ae commit 82ec638

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Doc/c-api/sys.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ Operating System Utilities
9696
9797
Return true when the interpreter runs out of stack space. This is a reliable
9898
check, but is only available when :const:`USE_STACKCHECK` is defined (currently
99-
on Windows using the Microsoft Visual C++ compiler). :const:`USE_STACKCHECK`
100-
will be defined automatically; you should never change the definition in your
101-
own code.
99+
on certain versions of Windows using the Microsoft Visual C++ compiler).
100+
:const:`USE_STACKCHECK` will be defined automatically; you should never
101+
change the definition in your own code.
102102
103103
104104
.. c:function:: PyOS_sighandler_t PyOS_getsig(int i)

Include/pythonrun.h

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ PyAPI_DATA(int) (*PyOS_InputHook)(void);
2424

2525
#if defined(WIN32) && !defined(MS_WIN64) && !defined(_M_ARM) && defined(_MSC_VER) && _MSC_VER >= 1300
2626
/* Enable stack checking under Microsoft C */
27+
// When changing the platforms, ensure PyOS_CheckStack() docs are still correct
2728
#define USE_STACKCHECK
2829
#endif
2930

0 commit comments

Comments
 (0)