Skip to content

Commit

Permalink
refactor(hook): calling convention as first template param
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed Jun 20, 2024
1 parent a9c06d8 commit 9606b3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/lime/hooks/hook.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ namespace lime
static rtn_t<std::add_pointer_t> create(Source source, Callable &&target);
};

template <detail::function_pointer Signature, convention Convention = convention::automatic, typename Callable>
template <convention Convention = convention::automatic, detail::function_pointer Signature, typename Callable>
auto make_hook(Signature source, Callable &&target);

template <typename Signature, convention Convention = convention::automatic, typename Callable>
Expand Down
2 changes: 1 addition & 1 deletion include/lime/hooks/hook.inl
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ namespace lime
return rtn;
}

template <detail::function_pointer Signature, convention Convention, typename Callable>
template <convention Convention, detail::function_pointer Signature, typename Callable>
auto make_hook(Signature source, Callable &&target)
{
return hook<std::remove_pointer_t<Signature>, Convention>::create(source, std::forward<Callable>(target));
Expand Down

0 comments on commit 9606b3c

Please sign in to comment.