lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> what happened to lua_pushupvalues() ?

That was compatibility code. Do you really need it?


> What is the supported way of doing this now?

  for (i = 1; lua_type(L, lua_upvalueindex(i)) != LUA_TNONE; i++) {
    luaL_checkstack(L, 1, "");
    lua_pushvalue(L, lua_upvalueindex(i));
  }

-- Roberto