1
0
mirror of https://github.com/elua/elua.git synced 2025-01-25 01:02:54 +08:00

Fix missing file close. Adjust formatting of definitions

This commit is contained in:
James Snyder 2011-11-29 10:23:40 -06:00
parent 7e6ea54e9b
commit 011d90fec6

View File

@ -177,10 +177,11 @@ gen_header = function( name, defines )
h:write("#define __" .. name:upper() .. "_H__\n\n")
for key,value in pairs(defines) do
h:write("#define " .. key:upper() .. " " .. value .. "\n")
h:write(string.format("#define %-25s%-19s\n",key:upper(),value))
end
h:write("\n#endif\n")
h:close()
end
-------------------------------------------------------------------------------