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

Method expectNext

vm.go:268–274  ·  view source on GitHub ↗
(expected opCode)

Source from the content-addressed store, hash-verified

266}
267
268func (e *engine) expectNext(expected opCode) instruction {
269 i := e.callInfo.step() // go to next instruction
270 if op := i.opCode(); op != expected {
271 panic(fmt.Sprintf("expected opcode %s, got %s", opNames[expected], opNames[op]))
272 }
273 return i
274}
275
276func clear(r []value) {
277 for i := range r {

Callers 1

initFunction · 0.80

Calls 2

stepMethod · 0.80
opCodeMethod · 0.80

Tested by

no test coverage detected