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

Function apiCheckStackIndex

lua.go:468–472  ·  view source on GitHub ↗
(index int, v value)

Source from the content-addressed store, hash-verified

466}
467
468func apiCheckStackIndex(index int, v value) {
469 if apiCheck && (v == none || isPseudoIndex(index)) {
470 panic(fmt.Sprintf("index %d not in the stack", index))
471 }
472}
473
474// SetField does the equivalent of table[key]=v where table is the value at
475// index and v is the value on top of the stack.

Callers 3

RemoveMethod · 0.85
InsertMethod · 0.85

Calls 1

isPseudoIndexFunction · 0.85

Tested by

no test coverage detected