Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 937b725

Browse files
Issue #28915: Exclude _Py_VaBuildStack from the limited API.
1 parent 683cb83 commit 937b725

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Include/modsupport.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ extern "C" {
2121
#endif /* !Py_LIMITED_API */
2222
#define Py_BuildValue _Py_BuildValue_SizeT
2323
#define Py_VaBuildValue _Py_VaBuildValue_SizeT
24+
#ifndef Py_LIMITED_API
2425
#define _Py_VaBuildStack _Py_VaBuildStack_SizeT
26+
#endif
2527
#else
2628
#ifndef Py_LIMITED_API
2729
PyAPI_FUNC(PyObject *) _Py_VaBuildValue_SizeT(const char *, va_list);
@@ -54,12 +56,14 @@ PyAPI_FUNC(int) PyArg_VaParseTupleAndKeywords(PyObject *, PyObject *,
5456
const char *, char **, va_list);
5557
#endif
5658
PyAPI_FUNC(PyObject *) Py_VaBuildValue(const char *, va_list);
59+
#ifndef Py_LIMITED_API
5760
PyAPI_FUNC(PyObject **) _Py_VaBuildStack(
5861
PyObject **small_stack,
5962
Py_ssize_t small_stack_len,
6063
const char *format,
6164
va_list va,
6265
Py_ssize_t *p_nargs);
66+
#endif
6367

6468
#ifndef Py_LIMITED_API
6569
typedef struct _PyArg_Parser {

0 commit comments

Comments
 (0)