diff options
author | sanine <sanine.not@pm.me> | 2022-01-04 12:17:02 -0600 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2022-01-04 12:17:02 -0600 |
commit | 0e84036b1b727356d433373b017204a8d575d2e4 (patch) | |
tree | 580ba1cf6f3f1a0f984a1f21511ea7d36814394a /src/lua-script/cify.lua | |
parent | cb4f641884ae6104f44967949f9b52a9a72f7baf (diff) |
add lua logging
Diffstat (limited to 'src/lua-script/cify.lua')
-rwxr-xr-x[-rw-r--r--] | src/lua-script/cify.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lua-script/cify.lua b/src/lua-script/cify.lua index 153feb3..a2fbcbe 100644..100755 --- a/src/lua-script/cify.lua +++ b/src/lua-script/cify.lua @@ -1,11 +1,13 @@ +#!/usr/bin/lua + -- "C"-ify a lua program -output_file = io.open(arg[2], 'w') +output_file = io.open('script.h', 'w') output_file:write('const char *argent_script =\n') -for line in io.lines(arg[1]) do +for line in io.lines('script.lua') do output_file:write(' "'..line..'\\n"\n') end |