mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:12:57 +01:00
sys/event: add assertion that event has a handler
This commit is contained in:
parent
b469a52a21
commit
18e6eaca00
@ -36,6 +36,7 @@
|
||||
void event_post(event_queue_t *queue, event_t *event)
|
||||
{
|
||||
assert(queue && event);
|
||||
assert(event->handler);
|
||||
|
||||
unsigned state = irq_disable();
|
||||
if (!event->list_node.next) {
|
||||
|
Loading…
Reference in New Issue
Block a user