MCPcopy Index your code
hub / github.com/yuin/gopher-lua / debugSetUpvalue

Function debugSetUpvalue

debuglib.go:140–151  ·  view source on GitHub ↗
(L *LState)

Source from the content-addressed store, hash-verified

138}
139
140func debugSetUpvalue(L *LState) int {
141 fn := L.CheckFunction(1)
142 idx := L.CheckInt(2)
143 value := L.CheckAny(3)
144 name := L.SetUpvalue(fn, idx, value)
145 if len(name) > 0 {
146 L.Push(LString(name))
147 } else {
148 L.Push(LNil)
149 }
150 return 1
151}
152
153func debugTraceback(L *LState) int {
154 msg := ""

Callers

nothing calls this directly

Calls 6

LStringTypeAlias · 0.85
CheckFunctionMethod · 0.80
CheckIntMethod · 0.80
CheckAnyMethod · 0.80
PushMethod · 0.65
SetUpvalueMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…