MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / lua_next

Function lua_next

lua/lapi.c:980–994  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

978
979
980LUA_API int lua_next (lua_State *L, int idx) {
981 StkId t;
982 int more;
983 lua_lock(L);
984 t = index2adr(L, idx);
985 api_check(L, ttistable(t));
986 more = luaH_next(L, hvalue(t), L->top - 1);
987 if (more) {
988 api_incr_top(L);
989 }
990 else /* no more elements */
991 L->top -= 1; /* remove key */
992 lua_unlock(L);
993 return more;
994}
995
996
997LUA_API void lua_concat (lua_State *L, int n) {

Callers 11

luaB_nextFunction · 0.85
dbconsumer_getargsFunction · 0.85
dbtable_insertFunction · 0.85
copy_state_tableFunction · 0.85
db_json_to_tableFunction · 0.85
db_table_to_jsonFunction · 0.85
db_copyrowFunction · 0.85
table_to_cson_objectFunction · 0.85
is_arrayFunction · 0.85
foreachFunction · 0.85
maxnFunction · 0.85

Calls 2

index2adrFunction · 0.85
luaH_nextFunction · 0.85

Tested by

no test coverage detected