1
0
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:
Benjamin Valentin 2024-08-29 17:19:13 +02:00
parent b469a52a21
commit 18e6eaca00

View File

@ -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) {