From 8e0bce6a539a3e39dd3db345c7d7a49e59faca1b Mon Sep 17 00:00:00 2001 From: Robear Selwans Date: Tue, 17 May 2022 20:41:30 +0200 Subject: [PATCH] Fixed ev_vec_push not supporting anonymous variables Signed-off-by: Robear Selwans --- ev_vec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ev_vec.h b/ev_vec.h index bcb5031..6af7921 100644 --- a/ev_vec.h +++ b/ev_vec.h @@ -158,7 +158,7 @@ ev_vec_init_impl( .data = __EV_VEC_EMPTY_ARRAY \ }).data -#define ev_vec_push(v, x) ev_vec_push_impl((ev_vec_t*)&v,&x); +#define ev_vec_push(v, ...) ev_vec_push_impl((ev_vec_t*)&v,&__VA_ARGS__); /*! * \param v The vector that we want an iterator for