macros.h: Introduce SIDE_PTR_INIT helper
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 21 Sep 2023 06:16:31 +0000 (07:16 +0100)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 21 Sep 2023 06:16:31 +0000 (07:16 +0100)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/side/macros.h

index 6a0a72dc2efa84e93c32522ba3232f9b483773fe..5a368bfd6b01637c7045b31abe1cb55f6dc0931f 100644 (file)
        } while (0)
 #endif
 
+#define SIDE_PTR_INIT(x)       { .v = (uintptr_t) (x) }
+
 #endif /* _SIDE_MACROS_H */
This page took 0.023385 seconds and 4 git commands to generate.