Mark `METH_FASTCALL` as limited API on Python 3.10+

0b9c4c6fcf (diff-adb492ab0eb13648d50d0d79e4b6e5517b27f983ab3b21b63e77f54132c98e9dR76)
This commit is contained in:
messense 2022-03-26 20:54:16 +08:00
parent f3f0a612d8
commit 23e220985a
No known key found for this signature in database
GPG Key ID: BB41A8A2C716CCA9
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ pub const METH_COEXIST: c_int = 0x0040;
/* METH_FASTCALL indicates the PEP 590 Vectorcall calling format. It may
be specified alone or with METH_KEYWORDS. */
#[cfg(not(Py_LIMITED_API))]
#[cfg(any(Py_3_10, not(Py_LIMITED_API)))]
pub const METH_FASTCALL: c_int = 0x0080;
// skipped METH_STACKLESS