Shorten loop into one call

This commit is contained in:
Fierelier 2023-05-15 10:01:55 +02:00
parent c4a2ef3f27
commit c3ed8bace5

View File

@ -44,12 +44,7 @@ for func in functions:
ofile.write("\t" +arg+ ' ' +functions[func]["argNames"][invarCount - 1]+ ' = ' +checkfunc+ '(L,' +str(invarCount)+ ');\n')
invarCount += 1
invarCount = 0
argstring = ""
for arg in functions[func]["arguments"]:
argstring += "," +functions[func]["argNames"][invarCount]
invarCount += 1
argstring = "(" +argstring.strip(",")+ ")"
argstring = "(" +",".join(functions[func]["argNames"])+ ")"
outtype = functions[func]["type"]
if outtype == "void":