MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / lua_next

Function lua_next

other_src/lua/src/lapi.cpp:1009–1023  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1007
1008
1009LUA_API int lua_next (lua_State *L, int idx) {
1010 StkId t;
1011 int more;
1012 lua_lock(L);
1013 t = index2adr(L, idx);
1014 api_check(L, ttistable(t));
1015 more = luaH_next(L, hvalue(t), L->top - 1);
1016 if (more) {
1017 api_incr_top(L);
1018 }
1019 else /* no more elements */
1020 L->top -= 1; /* remove key */
1021 lua_unlock(L);
1022 return more;
1023}
1024
1025
1026LUA_API void lua_concat (lua_State *L, int n) {

Callers 15

foreachFunction · 0.70
maxnFunction · 0.70
fix_lFunction · 0.70
luaB_nextFunction · 0.70
SendPlayerVariablesFunction · 0.50
executeMethod · 0.50
GetKeysTemplateMethod · 0.50
GetMapTemplateMethod · 0.50
CreateTextureMethod · 0.50
CreateFBOMethod · 0.50
LuaHTTPMethod · 0.50
JoinGameMethod · 0.50

Calls 2

index2adrFunction · 0.70
luaH_nextFunction · 0.70

Tested by

no test coverage detected