bpo-38835: Exclude PyFPE macros from the stable API (GH-17228)
Exclude PyFPE_START_PROTECT() and PyFPE_END_PROTECT() macros of pyfpe.h from Py_LIMITED_API (stable API).
This commit is contained in:
parent
e7e699e4df
commit
488d02a241
|
@ -226,6 +226,10 @@ Build and C API Changes
|
||||||
and refers to a constant string.
|
and refers to a constant string.
|
||||||
(Contributed by Serhiy Storchaka in :issue:`38650`.)
|
(Contributed by Serhiy Storchaka in :issue:`38650`.)
|
||||||
|
|
||||||
|
* Exclude ``PyFPE_START_PROTECT()`` and ``PyFPE_END_PROTECT()`` macros of
|
||||||
|
``pyfpe.h`` from ``Py_LIMITED_API`` (stable API).
|
||||||
|
(Contributed by Victor Stinner in :issue:`38835`.)
|
||||||
|
|
||||||
|
|
||||||
Deprecated
|
Deprecated
|
||||||
==========
|
==========
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#ifndef Py_PYFPE_H
|
#ifndef Py_PYFPE_H
|
||||||
#define Py_PYFPE_H
|
#define Py_PYFPE_H
|
||||||
|
/* Header excluded from the stable API */
|
||||||
|
#ifndef Py_LIMITED_API
|
||||||
|
|
||||||
/* These macros used to do something when Python was built with --with-fpectl,
|
/* These macros used to do something when Python was built with --with-fpectl,
|
||||||
* but support for that was dropped in 3.7. We continue to define them though,
|
* but support for that was dropped in 3.7. We continue to define them though,
|
||||||
|
@ -9,4 +11,5 @@
|
||||||
#define PyFPE_START_PROTECT(err_string, leave_stmt)
|
#define PyFPE_START_PROTECT(err_string, leave_stmt)
|
||||||
#define PyFPE_END_PROTECT(v)
|
#define PyFPE_END_PROTECT(v)
|
||||||
|
|
||||||
|
#endif /* !defined(Py_LIMITED_API) */
|
||||||
#endif /* !Py_PYFPE_H */
|
#endif /* !Py_PYFPE_H */
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
Exclude ``PyFPE_START_PROTECT()`` and ``PyFPE_END_PROTECT()`` macros of
|
||||||
|
``pyfpe.h`` from ``Py_LIMITED_API`` (stable API).
|
Loading…
Reference in New Issue