diff options
author | Alex Auvolat <alex@adnab.me> | 2017-04-19 12:13:30 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2017-04-19 12:13:30 +0200 |
commit | d4a89538d381bb62b4c7c864b09d3d8274cf0bdb (patch) | |
tree | db9f4e0066eddd7661eaf92375e84d584c64d987 /src/syslua/init.lua | |
parent | 8e88e765ee17296a85c5ae372471ed248ce321db (diff) | |
download | kogata-d4a89538d381bb62b4c7c864b09d3d8274cf0bdb.tar.gz kogata-d4a89538d381bb62b4c7c864b09d3d8274cf0bdb.zip |
First code for lx (Lua eXtended)
Diffstat (limited to 'src/syslua/init.lua')
-rw-r--r-- | src/syslua/init.lua | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/syslua/init.lua b/src/syslua/init.lua deleted file mode 100644 index 1ee7ee6..0000000 --- a/src/syslua/init.lua +++ /dev/null @@ -1,22 +0,0 @@ -print "Lua helpers for Kogata v1" - -do - local old_tostring = tostring - function tostring(x) - if type(x) == "table" then - if next(x) == nil then - return '{}' - end - local q = '{\n ' - for k, v in pairs(x) do - if q:len() > 4 then - q = q .. ',\n ' - end - q = q .. k .. ': ' .. tostring(v):gsub('\n', '\n ') - end - return q .. '\n}' - else - return old_tostring(x) - end - end -end |