Skip to content

Commit

Permalink
add mission API
Browse files Browse the repository at this point in the history
  • Loading branch information
ar-no22 committed Feb 4, 2024
1 parent 9cfaae9 commit 4faa782
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions unreal/Puerts/Source/JsEnv/Public/StaticCall.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ struct FuncCallHelper<API, std::pair<Ret, std::tuple<Args...>>, CheckArguments,
return false;

ArgumentsHolder cppArgHolders(
std::tuple<typename API::ContextType, typename API::ValueType>{context, GetArg(info, index)}...);
std::tuple<typename API::ContextType, typename API::ValueType>{context, API::GetArg(info, index)}...);

DefaultValueSetter<sizeof...(Args) - sizeof...(DefaultArguments), 0, typename std::decay<Args>::type...>::Set(
cppArgHolders, API::GetArgsLen(info), std::forward<DefaultArguments>(defaultValues)...);
Expand Down Expand Up @@ -813,10 +813,10 @@ struct FuncCallHelper<API, std::pair<Ret, std::tuple<Args...>>, CheckArguments,
return false;

ArgumentsHolder cppArgHolders(
std::tuple<typename API::ContextType, typename API::ValueType>{context, GetArg(info, index)}...);
std::tuple<typename API::ContextType, typename API::ValueType>{context, API::GetArg(info, index)}...);

DefaultValueSetter<sizeof...(Args) - sizeof...(DefaultArguments), 0, typename std::decay<Args>::type...>::Set(
cppArgHolders, GetArgsLen(info), std::forward<DefaultArguments>(defaultValues)...);
cppArgHolders, API::GetArgsLen(info), std::forward<DefaultArguments>(defaultValues)...);

API::SetReturn(
info, ReturnConverter<Ret>::Convert(context,
Expand Down

0 comments on commit 4faa782

Please sign in to comment.