| 14800 | } |
| 14801 | |
| 14802 | static int sort (lua_State *L) { |
| 14803 | int n = aux_getn(L, 1); |
| 14804 | luaL_checkstack(L, 40, ""); /* assume array is smaller than 2^40 */ |
| 14805 | if (!lua_isnoneornil(L, 2)) /* is there a 2nd argument? */ |
| 14806 | luaL_checktype(L, 2, LUA_TFUNCTION); |
| 14807 | lua_settop(L, 2); /* make sure there is two arguments */ |
| 14808 | auxsort(L, 1, n); |
| 14809 | return 0; |
| 14810 | } |
| 14811 | |
| 14812 | /* }====================================================== */ |
| 14813 |
nothing calls this directly
no test coverage detected