Skip to content

support set user-defined's dumpvalue#1

Open
sundream wants to merge 2 commits intorocaltair:masterfrom
sundream:master
Open

support set user-defined's dumpvalue#1
sundream wants to merge 2 commits intorocaltair:masterfrom
sundream:master

Conversation

@sundream
Copy link

No description provided.

ltrace.lua Outdated
for k, v in pairs_orderly(value) do
if not ignoreMap[k] and canPrint(k, v) then
if dumpers[k] ~= false then
local dumper = dumpers[k] and dumpers[k] or dumpvalue
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about using __tostring instead of dumper?

@@ -267,15 +253,15 @@ end
function getstack(level, maxframesz)
level = level or 2
local info = debug.getinfo(level, "nlSf")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

useless?

@rocaltair
Copy link
Owner

Much sorry for late reply, I appreciate your commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants