From 0e2cd351203483836da6ba952d597ffbe31e8e18 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 21 Sep 2023 07:16:31 +0100 Subject: [PATCH] macros.h: Introduce SIDE_PTR_INIT helper Signed-off-by: Mathieu Desnoyers --- include/side/macros.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/side/macros.h b/include/side/macros.h index 6a0a72d..5a368bf 100644 --- a/include/side/macros.h +++ b/include/side/macros.h @@ -121,4 +121,6 @@ } while (0) #endif +#define SIDE_PTR_INIT(x) { .v = (uintptr_t) (x) } + #endif /* _SIDE_MACROS_H */ -- 2.34.1