Skip to content

Commit

Permalink
or wait
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Apr 1, 2022
1 parent c8658bd commit 2e4a793
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/gui/core/event/dispatcher.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@

#include "gui/core/event/handler.hpp"
#include "hotkey/hotkey_command.hpp"
#include <functional>

#include <SDL2/SDL_events.h>

#include <cassert>
#include <functional>
#include <list>
#include <map>
#include <type_traits>
Expand Down Expand Up @@ -524,7 +525,7 @@ class dispatcher
} else if constexpr(is_text_input_event(E)) {
VALIDATE_AND_ADD_TO_QUEUE(signal_text_input)
} else {
assert(!sizeof(E) && "No matching signal queue found for event");
assert(false && "No matching signal queue found for event");
}
}

Expand Down Expand Up @@ -568,7 +569,7 @@ class dispatcher
} else if constexpr(is_text_input_event(E)) {
VALIDATE_AND_REMOVE_FROM_QUEUE(signal_text_input)
} else {
assert(!sizeof(E) && "No matching signal queue found for event");
assert(false && "No matching signal queue found for event");
}
}

Expand Down

0 comments on commit 2e4a793

Please sign in to comment.