API: Доступ к парам ключ-значение


-- table is in the stack at index 't'

lua_pushnil(L);  // first key
while (lua_next(L, t) != 0)
{
  printf("%s - %s\\n", luaL_typename(L, -2), luaL_typename(L, -1));

  lua_pop(L, 1);
}