forked from Fierelier/me.fier.engine
Shorten loop into one call
This commit is contained in:
parent
c4a2ef3f27
commit
c3ed8bace5
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user