(L *LState)
| 83 | } |
| 84 | |
| 85 | func tableInsert(L *LState) int { |
| 86 | tbl := L.CheckTable(1) |
| 87 | nargs := L.GetTop() |
| 88 | if nargs == 1 { |
| 89 | L.RaiseError("wrong number of arguments") |
| 90 | } |
| 91 | |
| 92 | if L.GetTop() == 2 { |
| 93 | tbl.Append(L.Get(2)) |
| 94 | return 0 |
| 95 | } |
| 96 | tbl.Insert(int(L.CheckInt(2)), L.CheckAny(3)) |
| 97 | return 0 |
| 98 | } |
| 99 | |
| 100 | // |
nothing calls this directly
no test coverage detected
searching dependent graphs…