From 0e84036b1b727356d433373b017204a8d575d2e4 Mon Sep 17 00:00:00 2001 From: sanine Date: Tue, 4 Jan 2022 12:17:02 -0600 Subject: add lua logging --- src/lua-script/cify.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) mode change 100644 => 100755 src/lua-script/cify.lua (limited to 'src/lua-script/cify.lua') diff --git a/src/lua-script/cify.lua b/src/lua-script/cify.lua old mode 100644 new mode 100755 index 153feb3..a2fbcbe --- 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 -- cgit v1.2.1