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:
parent
7e6ea54e9b
commit
011d90fec6
@ -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
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user