mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +00:00
Docs: Clarify availability of PyOS_CheckStack (GH-91816)
This commit is contained in:
parent
bcf14ae433
commit
82ec638ab7
2 changed files with 4 additions and 3 deletions
|
@ -96,9 +96,9 @@ Operating System Utilities
|
||||||
|
|
||||||
Return true when the interpreter runs out of stack space. This is a reliable
|
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
|
check, but is only available when :const:`USE_STACKCHECK` is defined (currently
|
||||||
on Windows using the Microsoft Visual C++ compiler). :const:`USE_STACKCHECK`
|
on certain versions of Windows using the Microsoft Visual C++ compiler).
|
||||||
will be defined automatically; you should never change the definition in your
|
:const:`USE_STACKCHECK` will be defined automatically; you should never
|
||||||
own code.
|
change the definition in your own code.
|
||||||
|
|
||||||
|
|
||||||
.. c:function:: PyOS_sighandler_t PyOS_getsig(int i)
|
.. c:function:: PyOS_sighandler_t PyOS_getsig(int i)
|
||||||
|
|
|
@ -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
|
#if defined(WIN32) && !defined(MS_WIN64) && !defined(_M_ARM) && defined(_MSC_VER) && _MSC_VER >= 1300
|
||||||
/* Enable stack checking under Microsoft C */
|
/* Enable stack checking under Microsoft C */
|
||||||
|
// When changing the platforms, ensure PyOS_CheckStack() docs are still correct
|
||||||
#define USE_STACKCHECK
|
#define USE_STACKCHECK
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue