Use pretty variable names for translation

This commit is contained in:
Fierelier 2023-05-14 22:13:21 +02:00
parent f112907af7
commit a149d0af2b

View File

@ -36,13 +36,13 @@ for func in functions:
checkfunc = typesIn["__unknown"]
else:
checkfunc = typesIn[arg]
ofile.write("\t" +arg+ ' invar' +str(invarCount)+ ' = ' +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 = ""
for arg in functions[func]["arguments"]:
argstring += ",invar" +str(invarCount)
argstring += "," +functions[func]["argNames"][invarCount]
invarCount += 1
argstring = "(" +argstring.strip(",")+ ")"