Allow limited access to unsafepairs/unsafenext

This commit is contained in:
2021-07-05 15:44:37 -04:00
parent 596d829ea6
commit b09a20ebea
3 changed files with 37 additions and 10 deletions

View File

@@ -78,10 +78,13 @@ int table_count(lua_State *L);
// This is not exposed directly to lua, but it is used
// in the new version of the 'pairs' iterator.
//
// The boolean 'unsortable' is set to indicate whether
// or not the table contains unsortable values.
// The boolean 'sort' is used to control whether the pairs
// are to be sorted or not.
//
int table_sortedpairs(lua_State *L, bool *unsortable);
// The boolean 'unsortable' returns a flag indicating
// whether or not unsortable items were omitted.
//
int table_getpairs(lua_State *L, bool sort, bool *unsortable);
// table_clear
//