mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Add getintarg(), getlongarg(), getstrarg() to macros since these no
longer exist in the general headers.
This commit is contained in:
parent
cb4d3032ae
commit
f6a84db034
1 changed files with 3 additions and 0 deletions
|
@ -101,6 +101,9 @@ static type_lock StdwinLock; /* Lock held when interpreter not locked */
|
|||
|
||||
#endif
|
||||
|
||||
#define getintarg(v,a) PyArg_Parse(v, "i", a)
|
||||
#define getlongarg(v,a) PyArg_Parse(v, "l", a)
|
||||
#define getstrarg(v,a) PyArg_Parse(v, "s", a)
|
||||
#define getpointarg(v, a) PyArg_Parse(v, "(ii)", a, (a)+1)
|
||||
#define get3pointarg(v, a) PyArg_Parse(v, "((ii)(ii)(ii))", \
|
||||
a, a+1, a+2, a+3, a+4, a+5)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue