MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / luaB_next

Function luaB_next

3rd/lua-5.4.3/src/lbaselib.c:252–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250
251
252static int luaB_next (lua_State *L) {
253 luaL_checktype(L, 1, LUA_TTABLE);
254 lua_settop(L, 2); /* create a 2nd argument if there isn't one */
255 if (lua_next(L, 1))
256 return 2;
257 else {
258 lua_pushnil(L);
259 return 1;
260 }
261}
262
263
264static int luaB_pairs (lua_State *L) {

Callers

nothing calls this directly

Calls 4

luaL_checktypeFunction · 0.85
lua_settopFunction · 0.85
lua_nextFunction · 0.85
lua_pushnilFunction · 0.85

Tested by

no test coverage detected