forked from redo/BlockLua
allow luaget/luaset/luacall to access tables and methods, improve type conversion, add bl.string, begin adding matrix
This commit is contained in:
@@ -179,7 +179,7 @@ valueToString = function(v, tabLevel, seen)
|
||||
return tostring(v)
|
||||
else
|
||||
--error('table.tostring: table contains a '..t..' value, cannot serialize')
|
||||
return 'nil --[[ cannot serialize '..t..': '..tostring(v)..' ]]'
|
||||
return 'nil --[[ cannot serialize '..tostring(v)..' ]]'
|
||||
end
|
||||
end
|
||||
function table.tostring(t)
|
||||
@@ -345,3 +345,6 @@ end
|
||||
function math.clamp(v, n, x)
|
||||
return math.min(x, math.max(v, n))
|
||||
end
|
||||
|
||||
|
||||
print(' Executed std.lua')
|
||||
|
||||
Reference in New Issue
Block a user