From 06bf76f818382cdd33816073866f3cfd41609597 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 11 Jan 2018 18:48:43 -0800 Subject: Truncated debug output for readability. --- nomsu.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'nomsu.lua') diff --git a/nomsu.lua b/nomsu.lua index 3232d7d..04d74c0 100644 --- a/nomsu.lua +++ b/nomsu.lua @@ -769,7 +769,16 @@ end]]):format(lua_code)) end if self.debug then 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 local lua = self.defs[tree.stub].fn(self, unpack(args)) remove(self.compilestack) -- cgit v1.2.3