Browse Source

garbage collection after each zencode line execution

master
Jaromil 3 years ago
parent
commit
7502bca811
  1. 1
      src/lua/zencode.lua
  2. 1
      src/lua/zencode_given.lua

1
src/lua/zencode.lua

@ -240,6 +240,7 @@ function zencode:run()
if err then ZEN:trace("[!] "..err) end
fatal(x.source) -- traceback print inside
end
collectgarbage'collect'
end
-- PRINT output
ZEN:trace("--- Zencode execution completed")

1
src/lua/zencode_given.lua

@ -47,6 +47,7 @@ Given("I introduce myself as ''", function(name) ZEN:Iam(name) end)
Given("I am known as ''", function(name) ZEN:Iam(name) end)
Given("I am ''", function(name) ZEN:Iam(name) end)
-- TODO: I have a '' as ''
Given("I have a ''", function(name)
ZEN:pick(name)
TMP.valid = true

Loading…
Cancel
Save