There was an error while loading. Please reload this page.
Py_FinalizeEx()
Py_LIMITED_API >= 0x03060000
1 parent 9a8d1d7 commit 3e8f962Copy full SHA for 3e8f962
Include/pylifecycle.h
@@ -12,7 +12,9 @@ extern "C" {
12
PyAPI_FUNC(void) Py_Initialize(void);
13
PyAPI_FUNC(void) Py_InitializeEx(int);
14
PyAPI_FUNC(void) Py_Finalize(void);
15
+#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03060000
16
PyAPI_FUNC(int) Py_FinalizeEx(void);
17
+#endif
18
PyAPI_FUNC(int) Py_IsInitialized(void);
19
20
/* Subinterpreter support */
Misc/NEWS.d/next/C API/2018-11-22-13-52-36.bpo-35259.p07c61.rst
@@ -0,0 +1,2 @@
1
+Conditionally declare :c:func:`Py_FinalizeEx()` (new in 3.6) based on
2
+Py_LIMITED_API. Patch by Arthur Neufeld.
0 commit comments