(L *LState)
| 112 | } |
| 113 | |
| 114 | func debugSetLocal(L *LState) int { |
| 115 | level := L.CheckInt(1) |
| 116 | idx := L.CheckInt(2) |
| 117 | value := L.CheckAny(3) |
| 118 | dbg, ok := L.GetStack(level) |
| 119 | if !ok { |
| 120 | L.ArgError(1, "level out of range") |
| 121 | } |
| 122 | name := L.SetLocal(dbg, idx, value) |
| 123 | if len(name) > 0 { |
| 124 | L.Push(LString(name)) |
| 125 | } else { |
| 126 | L.Push(LNil) |
| 127 | } |
| 128 | return 1 |
| 129 | } |
| 130 | |
| 131 | func debugSetMetatable(L *LState) int { |
| 132 | L.CheckTypes(2, LTNil, LTTable) |
nothing calls this directly
no test coverage detected
searching dependent graphs…