diff options
| author | ruki <[email protected]> | 2019-07-23 22:45:57 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-07-23 10:35:44 +0800 |
| commit | f2d08b55a0ea44c89ced43267a5c6f8b8829ac58 (patch) | |
| tree | 15ab74ac64ea25e1115fbc2f47e55caaf9938159 /xmake/core/base/dump.lua | |
| parent | 1c7b34c71e0d4d3b59a6f3d84c65ab4944b878c6 (diff) | |
fix print udata
Diffstat (limited to 'xmake/core/base/dump.lua')
| -rw-r--r-- | xmake/core/base/dump.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xmake/core/base/dump.lua b/xmake/core/base/dump.lua index bdc3d65f6..469454fa8 100644 --- a/xmake/core/base/dump.lua +++ b/xmake/core/base/dump.lua @@ -245,14 +245,13 @@ end function dump._print_udata(value, first_indent, remain_indent, printed_set) local first_level - printed_set, first_level = dump._get_printed_set(printed_set) + local metatable = getmetatable(value) + printed_set, first_level = dump._get_printed_set(printed_set, metatable) io.write(first_indent) if not first_level then return dump._print_udata_scalar(value) end - - local metatable = getmetatable(value) local inner_indent = remain_indent .. " " -- print open brackets |
