diff --git a/lua_translate b/lua_translate index 7e08726..e6d3d14 100755 --- a/lua_translate +++ b/lua_translate @@ -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":