diff options
author | Victor Stinner <vstinner@python.org> | 2019-11-20 11:17:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-20 11:17:09 (GMT) |
commit | 488d02a24142948bfb1fafd19fa48e61fcbbabc5 (patch) | |
tree | 19ed65afb8bfbb0552ba2f86ab546d9fb567a859 /Include | |
parent | e7e699e4df73420ddccaa0057cd07ebb3b590b9b (diff) | |
download | cpython-488d02a24142948bfb1fafd19fa48e61fcbbabc5.zip cpython-488d02a24142948bfb1fafd19fa48e61fcbbabc5.tar.gz cpython-488d02a24142948bfb1fafd19fa48e61fcbbabc5.tar.bz2 |
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).
Diffstat (limited to 'Include')
-rw-r--r-- | Include/pyfpe.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/pyfpe.h b/Include/pyfpe.h index 5a99e39..cc2def6 100644 --- a/Include/pyfpe.h +++ b/Include/pyfpe.h @@ -1,5 +1,7 @@ #ifndef 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, * 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_END_PROTECT(v) +#endif /* !defined(Py_LIMITED_API) */ #endif /* !Py_PYFPE_H */ |