【优化】lua调用堆栈

This commit is contained in:
wxd-gaming
2024-10-12 15:27:25 +08:00
parent be3c76545f
commit 2d80b15b06
9 changed files with 83 additions and 40 deletions

View File

@@ -9,7 +9,7 @@ function errFunc(error)
end
function t1(str)
print(str)
print(str, type(str))
local num = 99999999999999999
print(num)
print(1 << 2)
@@ -18,6 +18,7 @@ function t1(str)
--print(type(time) + num .. tostring(time))
--print(debug.traceback())
--print(str + num)
return str
end
--local success, error = pcall(t1, "d")

View File

@@ -27,7 +27,7 @@ function ret(obj)
return "dd - " .. obj
end)
if not success then
local var = gameDebug.toStrings(obj, true)
local var = gameDebug.toStrings(", ", obj, true)
print(debug.traceback(var .. ret), 1)
end
return ret