diff options
author | Petr Viktorin <encukou@gmail.com> | 2023-02-28 08:31:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-28 08:31:01 (GMT) |
commit | 6b2d7c0ddb4d2afe298ee7c8f6a23c400f1465fd (patch) | |
tree | fa34a8d7217783a1e9069144b94d369cfb573052 /Include/pyport.h | |
parent | c41af812c948ec3cb07b2ef7a46a238f5cab3dc2 (diff) | |
download | cpython-6b2d7c0ddb4d2afe298ee7c8f6a23c400f1465fd.zip cpython-6b2d7c0ddb4d2afe298ee7c8f6a23c400f1465fd.tar.gz cpython-6b2d7c0ddb4d2afe298ee7c8f6a23c400f1465fd.tar.bz2 |
gh-101101: Unstable C API tier (PEP 689) (GH-101102)
Diffstat (limited to 'Include/pyport.h')
-rw-r--r-- | Include/pyport.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Include/pyport.h b/Include/pyport.h index 40092c2..eef0fe1 100644 --- a/Include/pyport.h +++ b/Include/pyport.h @@ -323,6 +323,15 @@ extern "C" { #define Py_DEPRECATED(VERSION_UNUSED) #endif +// _Py_DEPRECATED_EXTERNALLY(version) +// Deprecated outside CPython core. +#ifdef Py_BUILD_CORE +#define _Py_DEPRECATED_EXTERNALLY(VERSION_UNUSED) +#else +#define _Py_DEPRECATED_EXTERNALLY(version) Py_DEPRECATED(version) +#endif + + #if defined(__clang__) #define _Py_COMP_DIAG_PUSH _Pragma("clang diagnostic push") #define _Py_COMP_DIAG_IGNORE_DEPR_DECLS \ |