From: Mathieu Desnoyers Date: Thu, 21 Sep 2023 06:34:36 +0000 (+0100) Subject: Fix: accept variable list of arguments from SIDE_PTR_INIT X-Git-Url: http://git.efficios.com/?p=libside.git;a=commitdiff_plain;h=053076a034894718038e3478904f373da9a242f9 Fix: accept variable list of arguments from SIDE_PTR_INIT Signed-off-by: Mathieu Desnoyers --- diff --git a/include/side/macros.h b/include/side/macros.h index 5a368bf..20fa97e 100644 --- a/include/side/macros.h +++ b/include/side/macros.h @@ -121,6 +121,6 @@ } while (0) #endif -#define SIDE_PTR_INIT(x) { .v = (uintptr_t) (x) } +#define SIDE_PTR_INIT(...) { .v = (uintptr_t) (__VA_ARGS__) } #endif /* _SIDE_MACROS_H */