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

Function expectNext

vm.go:963–969  ·  view source on GitHub ↗
(ci *callInfo, expected opCode)

Source from the content-addressed store, hash-verified

961}
962
963func expectNext(ci *callInfo, expected opCode) instruction {
964 i := ci.step() // go to next instruction
965 if op := i.opCode(); op != expected {
966 panic(fmt.Sprintf("expected opcode %s, got %s", opNames[expected], opNames[op]))
967 }
968 return i
969}
970
971func (l *State) executeSwitch() {
972 ci := l.callInfo

Callers 1

executeSwitchMethod · 0.85

Calls 2

stepMethod · 0.80
opCodeMethod · 0.80

Tested by

no test coverage detected