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

Method checkUpValue

debug.go:406–413  ·  view source on GitHub ↗
(f, upValueCount int)

Source from the content-addressed store, hash-verified

404}
405
406func (l *State) checkUpValue(f, upValueCount int) int {
407 n := CheckInteger(l, upValueCount)
408 CheckType(l, f, TypeFunction)
409 l.PushValue(f)
410 debug, _ := Info(l, ">u", nil)
411 ArgumentCheck(l, 1 <= n && n <= debug.UpValueCount, upValueCount, "invalue upvalue index")
412 return n
413}
414
415func threadArg(l *State) (int, *State) {
416 if l.IsThread(1) {

Callers 1

debug.goFile · 0.80

Calls 5

PushValueMethod · 0.95
CheckIntegerFunction · 0.85
CheckTypeFunction · 0.85
InfoFunction · 0.85
ArgumentCheckFunction · 0.85

Tested by

no test coverage detected