Skip to content

Commit

Permalink
version3
Browse files Browse the repository at this point in the history
  • Loading branch information
uecker committed Aug 21, 2024
1 parent c81ee99 commit e57474d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/namespace.h
Original file line number Diff line number Diff line change
Expand Up @@ -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, ...) \
(static const struct { MAP(NAMESPACE_ENTRY, S, __VA_ARGS__) }){ MAP(NAMESPACE_INIT, S, __VA_ARGS__) }



0 comments on commit e57474d

Please sign in to comment.