Added pre processing of script data

This commit is contained in:
obscuren
2014-04-12 00:13:42 -04:00
parent 116516158d
commit 086acd122b
3 changed files with 35 additions and 3 deletions

View File

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