MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / luaB_next

Function luaB_next

libraries/AP_Scripting/lua/src/lbaselib.c:229–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227
228
229static int luaB_next (lua_State *L) {
230 luaL_checktype(L, 1, LUA_TTABLE);
231 lua_settop(L, 2); /* create a 2nd argument if there isn't one */
232 if (lua_next(L, 1))
233 return 2;
234 else {
235 lua_pushnil(L);
236 return 1;
237 }
238}
239
240
241static 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