events: assert events initialized in events_register_handler

This commit is contained in:
Andrei Alexeyev 2022-01-24 10:58:29 +02:00
parent 19f99393e7
commit d3d363e8cb
No known key found for this signature in database
GPG key ID: 72D26128040B9690

View file

@ -75,6 +75,7 @@ static inline int prio_index(EventPriority prio) {
}
void events_register_handler(EventHandler *handler) {
assert(sdl_first_user_event > 0);
assert(handler->proc != NULL);
assert(handler->priority >= EPRIO_FIRST);
assert(handler->priority <= EPRIO_LAST);