bool lua_details::listVirtualStack(lua_State* L, ValueStack& stack, size_t table_size_limit) { int size= lua_gettop(L); stack.clear(); stack.reserve(size); for (int idx= size - 1; idx > 0; --idx) { Value v(L, idx, 1, table_size_limit); stack.push_back(v); } return true; }