X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=stdapi.py;h=8852345884a69ce26b081a755201d9aa12e050bc;hb=8384ccb5de91cf5b3dcc16d4a3ef2830c6113ad5;hp=8a2756641663c265e7290432c21cec4409ecdf00;hpb=0187fac59ca457bfc203a1d3830abddd6512c16e;p=apitrace diff --git a/stdapi.py b/stdapi.py index 8a27566..8852345 100644 --- a/stdapi.py +++ b/stdapi.py @@ -225,8 +225,12 @@ class Function: self.args = [] index = 0 for arg in args: - if isinstance(arg, tuple): - arg_type, arg_name = arg + if not isinstance(arg, Arg): + if isinstance(arg, tuple): + arg_type, arg_name = arg + else: + arg_type = arg + arg_name = "arg%u" % index arg = Arg(arg_type, arg_name) arg.index = index index += 1