mirror of
https://github.com/vrld/hump.git
synced 2024-11-23 12:24:19 +00:00
Forward arguments from GS.pop() to state:resume()
This commit is contained in:
parent
4f53485fb7
commit
af8f19a48e
@ -53,12 +53,12 @@ function GS.push(to, ...)
|
||||
return (to.enter or __NULL__)(to, pre, ...)
|
||||
end
|
||||
|
||||
function GS.pop()
|
||||
function GS.pop(...)
|
||||
assert(#stack > 1, "No more states to pop!")
|
||||
local pre = stack[#stack]
|
||||
stack[#stack] = nil
|
||||
;(pre.leave or __NULL__)(pre)
|
||||
return (stack[#stack].resume or __NULL__)(pre)
|
||||
return (stack[#stack].resume or __NULL__)(pre, ...)
|
||||
end
|
||||
|
||||
function GS.current()
|
||||
|
Loading…
Reference in New Issue
Block a user