Skip to content

Commit

Permalink
sort new
Browse files Browse the repository at this point in the history
  • Loading branch information
altalk23 committed Jun 2, 2024
1 parent bcefc5c commit 2a6fc41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ void Handler::updateHookMetadata(HookHandle const& hook, HookMetadata const& met

void Handler::reorderFunctions() {
auto& vec = m_content->m_functions;
std::cout << "functions size " << vec.size() << std::endl;
std::cout << "functions size " << m_content->m_functions.size() << " this " << (void*)this << std::endl;
std::sort(m_content->m_functions.begin(), m_content->m_functions.end(), [this](auto const a, auto const b) {
std::cout << "reordering " << m_handles[a] << " " << m_handles[b] << std::endl;
std::cout << "reordering this" << a << " " << b << " "<< (void*)this << std::endl;
return a < b;
});
// std::sort(vec.begin(), vec.end(), [this](auto const a, auto const b) {
Expand Down

0 comments on commit 2a6fc41

Please sign in to comment.