MCPcopy Index your code
hub / github.com/Shopify/go-lua / hook

Method hook

vm.go:294–299  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

292func (e *engine) hooked() bool { return e.l.hookMask&(MaskLine|MaskCount) != 0 }
293
294func (e *engine) hook() {
295 if e.l.hookCount--; e.l.hookCount == 0 || e.l.hookMask&MaskLine != 0 {
296 e.l.traceExecution()
297 e.frame = e.callInfo.frame
298 }
299}
300
301type engineOp func(*engine, instruction) (engineOp, instruction)
302

Callers 1

initFunction · 0.45

Calls 1

traceExecutionMethod · 0.80

Tested by

no test coverage detected