events: assert events initialized in events_register_handler
This commit is contained in:
parent
19f99393e7
commit
d3d363e8cb
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue