diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-04-08 18:23:46 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-04-08 18:24:11 -0700 |
| commit | 86925c5b3a2c38ff47eb1764b04394b7d25cd13d (patch) | |
| tree | b8103964b89e211efc84baec7241a7d840a025a0 /nomsu.lua | |
| parent | 618bd4776515706137af8af84c645c60a2667d61 (diff) | |
Patched debug.getinfo to return reasonable info for nomsu functions.
Diffstat (limited to 'nomsu.lua')
| -rw-r--r-- | nomsu.lua | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -1,4 +1,3 @@ -local log = io.open('output.log', 'w') local lfs = require('lfs') local re = require('re') local lpeg = require('lpeg') @@ -1741,7 +1740,6 @@ if arg and debug_getinfo(2).func ~= require then for _ in file:sub(1, tonumber(start)):gmatch("\n") do line_no = line_no + 1 end - log:write("short_src " .. tostring(info.short_src) .. " -> " .. tostring(filename) .. "\n") info.short_src, info.linedefined = filename, line_no info.currentline = line_no info.source = file @@ -1750,7 +1748,6 @@ if arg and debug_getinfo(2).func ~= require then end local name = colored.bright(colored.yellow(metadata.aliases[1])) else - log:write("SHORT SRC: " .. tostring(info.short_src) .. "\n") if info.short_src and info.short_src:match("^.*%.moon$") then local line_table = moonscript_line_tables[info.short_src] local file = files[info.short_src] |
