clarify clean_reqscript() function comment

develop
myk002 2021-03-24 21:49:53 -07:00
parent 035c9eec04
commit 8ccacd94e0
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 3 additions and 2 deletions

@ -83,8 +83,9 @@ local function clean_require(module)
end end
-- similar to clean_require above; forces clean load of scripts directly -- similar to clean_require above; forces clean load of scripts directly
-- included from a test file. note that this does *not* force transitively -- included from a test file. note that this does *not* force indirectly loaded
-- loaded scripts to be reloaded. -- scripts (that is, scripts that are reqscript()'d by the scripts that are
-- reqscript()'d by the test file) to be reloaded.
local function clean_reqscript(name) local function clean_reqscript(name)
dfhack.internal.scripts[dfhack.findScript(name)] = nil dfhack.internal.scripts[dfhack.findScript(name)] = nil
return reqscript(name) return reqscript(name)