Stats module

This commit is contained in:
Henrique Santiago
2012-08-22 05:51:31 -03:00
parent c50e186fa7
commit 05fcf740b4
13 changed files with 284 additions and 10 deletions

View File

@@ -236,6 +236,14 @@ function toboolean(str)
return false
end
function fromboolean(boolean)
if boolean then
return 'true'
else
return 'false'
end
end
function signalcall(param, ...)
if type(param) == 'function' then
local status, ret = pcall(param, ...)