From cf05b39da5c30fcfc91711a3fc62750de3a61b5b Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Thu, 4 Mar 2021 12:21:07 +0100 Subject: [PATCH] sys/event: add missing precondition to doc --- sys/include/event.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/include/event.h b/sys/include/event.h index 01ec3966fd..4ce40f6a20 100644 --- a/sys/include/event.h +++ b/sys/include/event.h @@ -305,6 +305,8 @@ event_t *event_get(event_queue_t *queue); * sources of latency) that is acceptable to the real-time event with * the strictest requirements. * + * @pre 0 < @p n_queues (expect blowing `assert()` otherwise) + * * @param[in] queues Array of event queues to get event from * @param[in] n_queues Number of event queues passed in @p queues *