MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / format_function_args

Function format_function_args

ThunkLibs/Generator/gen.cpp:49–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47
48template<typename Fn>
49static std::string format_function_args(const FunctionParams& params, Fn&& format_arg) {
50 std::string ret;
51 for (std::size_t idx = 0; idx < params.param_types.size(); ++idx) {
52 ret += std::forward<Fn>(format_arg)(idx) + ", ";
53 }
54 // drop trailing ", "
55 ret.resize(ret.size() > 2 ? ret.size() - 2 : 0);
56 return ret;
57};
58
59// Custom sort algorithm that works with partial orders.
60//

Callers 1

OnAnalysisCompleteMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected