github.com/aergoio/aergo@v1.3.1/contract/hook.go (about) 1 // +build !Debug 2 3 package contract 4 5 /* 6 #include "vm.h" 7 */ 8 import "C" 9 10 func (ce *Executor) setCountHook(limit C.int) { 11 if ce == nil || ce.L == nil { 12 return 13 } 14 if ce.err != nil { 15 return 16 } 17 C.vm_set_count_hook(ce.L, limit) 18 }