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')
|
ofile.write("\t" +arg+ ' ' +functions[func]["argNames"][invarCount - 1]+ ' = ' +checkfunc+ '(L,' +str(invarCount)+ ');\n')
|
||||||
invarCount += 1
|
invarCount += 1
|
||||||
|
|
||||||
invarCount = 0
|
argstring = "(" +",".join(functions[func]["argNames"])+ ")"
|
||||||
argstring = ""
|
|
||||||
for arg in functions[func]["arguments"]:
|
|
||||||
argstring += "," +functions[func]["argNames"][invarCount]
|
|
||||||
invarCount += 1
|
|
||||||
argstring = "(" +argstring.strip(",")+ ")"
|
|
||||||
|
|
||||||
outtype = functions[func]["type"]
|
outtype = functions[func]["type"]
|
||||||
if outtype == "void":
|
if outtype == "void":
|
||||||
|
Loading…
Reference in New Issue
Block a user