Changed debug hook and added state iterator

This commit is contained in:
obscuren
2014-05-27 13:10:18 +02:00
parent 6e24d603a1
commit aba3066658
3 changed files with 7 additions and 2 deletions

View File

@ -72,7 +72,7 @@ func (c *Closure) Address() []byte {
return c.object.Address()
}
type DebugHook func(step int, op OpCode, mem *Memory, stack *Stack)
type DebugHook func(step int, op OpCode, mem *Memory, stack *Stack, stateObject *StateObject)
func (c *Closure) Call(vm *Vm, args []byte, hook DebugHook) ([]byte, error) {
c.Args = args