Add debug print to lua_preload example file

This commit is contained in:
bel2125 2018-06-01 21:59:03 +02:00
parent 67a162997f
commit 3a84b59572

View File

@ -69,9 +69,20 @@ SAPI.Response.write = function(...)
end
-- Debug helper function to print a table
function po(t)
print("Type: " .. type(t) .. ", Value: " .. tostring(t))
if type(t)=="table" then
for k,v in pairs(t) do
print(k,v)
end
end
end
-----------------------------------------------------
-- Use cgilua interface
require "cgilua"
-- require "cgilua"