Improved the init command. Fixes #96.

This commit is contained in:
Dominik Picheta 2015-12-23 22:40:14 +00:00
commit 7d5428be19
4 changed files with 130 additions and 42 deletions

View file

@ -86,6 +86,8 @@ proc cleanup() =
# ensure everything can be called again:
resetAllModulesHard()
clearPasses()
msgs.gErrorMax = 1
msgs.writeLnHook = nil
vm.globalCtx = nil
initDefines()