GetRunlimit causes the vm to write its ending runlimit to the given pointer on exit.
(runlimit *int64)
| 67 | // GetRunlimit causes the vm to write its ending runlimit to the given |
| 68 | // pointer on exit. |
| 69 | func GetRunlimit(runlimit *int64) Option { |
| 70 | return Option{ |
| 71 | apply: func(vm *VM) { |
| 72 | vm.onExit = append(vm.onExit, func(vm *VM) { |
| 73 | *runlimit = vm.runlimit |
| 74 | }) |
| 75 | }, |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | // Resumer can be passed as an option to Validate. It acts like |
| 80 | // StopAfterFinalize, but additionally writes a function to the |
no outgoing calls