mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Added getintintintarg() (3 int args)
This commit is contained in:
parent
1055ecebee
commit
ef0068ff9d
1 changed files with 15 additions and 0 deletions
|
@ -95,6 +95,21 @@ getintintarg(v, a, b)
|
|||
getintarg(gettupleitem(v, 1), b);
|
||||
}
|
||||
|
||||
int
|
||||
getintintintarg(v, a, b, c)
|
||||
object *v;
|
||||
int *a;
|
||||
int *b;
|
||||
int *c;
|
||||
{
|
||||
if (v == NULL || !is_tupleobject(v) || gettuplesize(v) != 3) {
|
||||
return err_badarg();
|
||||
}
|
||||
return getintarg(gettupleitem(v, 0), a) &&
|
||||
getintarg(gettupleitem(v, 1), b) &&
|
||||
getintarg(gettupleitem(v, 2), c);
|
||||
}
|
||||
|
||||
int
|
||||
getlongarg(v, a)
|
||||
object *v;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue