Truncated debug output for readability.
This commit is contained in:
parent
48b27d4b1a
commit
06bf76f818
11
nomsu.lua
11
nomsu.lua
@ -769,7 +769,16 @@ end]]):format(lua_code))
|
|||||||
end
|
end
|
||||||
if self.debug then
|
if self.debug then
|
||||||
self:write(tostring(colored.bright("RUNNING MACRO")) .. " " .. tostring(colored.underscore(colored.magenta(tree.stub))) .. " ")
|
self:write(tostring(colored.bright("RUNNING MACRO")) .. " " .. tostring(colored.underscore(colored.magenta(tree.stub))) .. " ")
|
||||||
self:writeln(tostring(colored.bright("WITH ARGS:")) .. " " .. tostring(colored.dim(repr(args))))
|
self:writeln(tostring(colored.bright("WITH ARGS:")) .. " " .. tostring(colored.dim(repr((function()
|
||||||
|
local _accum_0 = { }
|
||||||
|
local _len_0 = 1
|
||||||
|
for _index_0 = 1, #args do
|
||||||
|
local a = args[_index_0]
|
||||||
|
_accum_0[_len_0] = (repr(a)):sub(1, 50)
|
||||||
|
_len_0 = _len_0 + 1
|
||||||
|
end
|
||||||
|
return _accum_0
|
||||||
|
end)()))))
|
||||||
end
|
end
|
||||||
local lua = self.defs[tree.stub].fn(self, unpack(args))
|
local lua = self.defs[tree.stub].fn(self, unpack(args))
|
||||||
remove(self.compilestack)
|
remove(self.compilestack)
|
||||||
|
@ -526,7 +526,7 @@ end]]\format(lua_code))
|
|||||||
args = [arg for arg in *tree.value when arg.type != "Word"]
|
args = [arg for arg in *tree.value when arg.type != "Word"]
|
||||||
if @debug
|
if @debug
|
||||||
@write "#{colored.bright "RUNNING MACRO"} #{colored.underscore colored.magenta(tree.stub)} "
|
@write "#{colored.bright "RUNNING MACRO"} #{colored.underscore colored.magenta(tree.stub)} "
|
||||||
@writeln "#{colored.bright "WITH ARGS:"} #{colored.dim repr args}"
|
@writeln "#{colored.bright "WITH ARGS:"} #{colored.dim repr [(repr a)\sub(1,50) for a in *args]}"
|
||||||
lua = @defs[tree.stub].fn(self, unpack(args))
|
lua = @defs[tree.stub].fn(self, unpack(args))
|
||||||
remove @compilestack
|
remove @compilestack
|
||||||
return lua
|
return lua
|
||||||
|
Loading…
Reference in New Issue
Block a user