From 2280af3cb0c288afab3fab0a6262c463e5c6ecda Mon Sep 17 00:00:00 2001 From: Martin Uecker Date: Wed, 21 Aug 2024 23:50:04 +0200 Subject: [PATCH] version3 --- src/namespace.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/namespace.h b/src/namespace.h index 81e785f..9fb4e20 100644 --- a/src/namespace.h +++ b/src/namespace.h @@ -16,3 +16,9 @@ static const struct \ #define NAMESPACE(S, ...) \ static const struct { MAP(NAMESPACE_ENTRY, S, __VA_ARGS__) } S = { MAP(NAMESPACE_INIT, S, __VA_ARGS__) } + +#define namespace(S, ...) \ +(const struct { MAP(NAMESPACE_ENTRY, S, __VA_ARGS__) }){ MAP(NAMESPACE_INIT, S, __VA_ARGS__) } + + +