126 [[nodiscard]]
static TypeResult<Type>
get(lua_State* L,
int index)
128 if (!lua_istable(L, index))
129 return makeErrorCode(ErrorCode::InvalidTypeCast);
131 const StackRestore stackRestore(L);
135 int absIndex = lua_absindex(L, index);
138 while (lua_next(L, absIndex) != 0)
140 auto value = Stack<T>::get(L, -1);
142 return makeErrorCode(ErrorCode::InvalidTypeCast);