(L *LState)
| 20 | } |
| 21 | |
| 22 | func tableSort(L *LState) int { |
| 23 | tbl := L.CheckTable(1) |
| 24 | sorter := lValueArraySorter{L, nil, tbl.array} |
| 25 | if L.GetTop() != 1 { |
| 26 | sorter.Fn = L.CheckFunction(2) |
| 27 | } |
| 28 | sort.Sort(sorter) |
| 29 | return 0 |
| 30 | } |
| 31 | |
| 32 | func tableGetN(L *LState) int { |
| 33 | L.Push(LNumber(L.CheckTable(1).Len())) |
nothing calls this directly
no test coverage detected
searching dependent graphs…