MCPcopy Create free account
hub / github.com/DFHack/dfhack / lua_next

Function lua_next

depends/lua/src/lapi.c:1123–1137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1121
1122
1123LUA_API int lua_next (lua_State *L, int idx) {
1124 StkId t;
1125 int more;
1126 lua_lock(L);
1127 t = index2addr(L, idx);
1128 api_check(L, ttistable(t), "table expected");
1129 more = luaH_next(L, hvalue(t), L->top - 1);
1130 if (more) {
1131 api_incr_top(L);
1132 }
1133 else /* no more elements */
1134 L->top -= 1; /* remove key */
1135 lua_unlock(L);
1136 return more;
1137}
1138
1139
1140LUA_API void lua_concat (lua_State *L, int n) {

Callers 15

GetVectorMethod · 0.85
dfhack_event_nextFunction · 0.85
dfhack_event_invokeFunction · 0.85
AddFieldInfoTableFunction · 0.85
pen_pnextFunction · 0.85
internal_patchBytesFunction · 0.85
internal_runCommandFunction · 0.85
copy_tableFunction · 0.85
meta_assignFunction · 0.85
wtype_pnextFunction · 0.85
GetVectorFunction · 0.85
luaB_nextFunction · 0.85

Calls 2

index2addrFunction · 0.85
luaH_nextFunction · 0.85

Tested by

no test coverage detected