1
0
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:
Redo
2025-10-06 10:30:25 -05:00
parent 5f98dc017b
commit 76c758a47b
12 changed files with 223 additions and 94 deletions

View File

@@ -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')