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

Function debugSetMetatable

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

Source from the content-addressed store, hash-verified

129}
130
131func debugSetMetatable(L *LState) int {
132 L.CheckTypes(2, LTNil, LTTable)
133 obj := L.Get(1)
134 mt := L.Get(2)
135 L.SetMetatable(obj, mt)
136 L.SetTop(1)
137 return 1
138}
139
140func debugSetUpvalue(L *LState) int {
141 fn := L.CheckFunction(1)

Callers

nothing calls this directly

Calls 4

CheckTypesMethod · 0.80
GetMethod · 0.45
SetMetatableMethod · 0.45
SetTopMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…