Add/get table functions implemented on ext charlist

This commit is contained in:
Henrique Santiago
2012-08-30 02:59:10 -03:00
parent d98f6f7673
commit c517f7b745
10 changed files with 120 additions and 8 deletions

View File

@@ -244,6 +244,22 @@ function fromboolean(boolean)
end
end
function booleantonumber(boolean)
if boolean then
return 1
else
return 0
end
end
function numbertoboolean(number)
if number ~= 0 then
return true
else
return false
end
end
function signalcall(param, ...)
if type(param) == 'function' then
local status, ret = pcall(param, ...)