void lua_pushref (int ref) { Object *o = luaI_getref(ref); if (o == NULL) lua_error("access to invalid (possibly garbage collected) reference"); luaI_pushobject(o); }
lua_Object lua_getref (int ref) { TObject *o = luaI_getref(ref); if (o == NULL) return LUA_NOOBJECT; return put_luaObject(o); }
lua_Object lua_getref (int ref) { Object *o = luaI_getref(ref); if (o == NULL) return LUA_NOOBJECT; adjustC(0); luaI_pushobject(o); CLS_current.base++; /* incorporate object in the stack */ return Ref(top-1); }