diff options
| author | Dong-hee Na <donghee.na92@gmail.com> | 2020-03-16 23:06:20 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-16 15:06:20 +0100 |
| commit | 87ec86c425a5cd3ad41b831b54c0ce1a0c363f4b (patch) | |
| tree | 8c51144ad1a0b7c88c29e63f1063537096c6c15b /Include/modsupport.h | |
| parent | c98f87fc330eb40fbcff627dfc50958785a44f35 (diff) | |
| download | cpython-git-87ec86c425a5cd3ad41b831b54c0ce1a0c363f4b.tar.gz | |
bpo-37207: Add _PyArg_NoKwnames() helper function (GH-18980)
Diffstat (limited to 'Include/modsupport.h')
| -rw-r--r-- | Include/modsupport.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/modsupport.h b/Include/modsupport.h index f90ede4831..f2dc812df2 100644 --- a/Include/modsupport.h +++ b/Include/modsupport.h @@ -60,9 +60,12 @@ PyAPI_FUNC(int) _PyArg_UnpackStack( ...); PyAPI_FUNC(int) _PyArg_NoKeywords(const char *funcname, PyObject *kwargs); +PyAPI_FUNC(int) _PyArg_NoKwnames(const char *funcname, PyObject *kwnames); PyAPI_FUNC(int) _PyArg_NoPositional(const char *funcname, PyObject *args); #define _PyArg_NoKeywords(funcname, kwargs) \ ((kwargs) == NULL || _PyArg_NoKeywords((funcname), (kwargs))) +#define _PyArg_NoKwnames(funcname, kwnames) \ + ((kwnames) == NULL || _PyArg_NoKwnames((funcname), (kwnames))) #define _PyArg_NoPositional(funcname, args) \ ((args) == NULL || _PyArg_NoPositional((funcname), (args))) |
