From 60fd04865671f3099bbf6ede1d3d2110a04e04dd Mon Sep 17 00:00:00 2001 From: Eczbek Date: Thu, 15 Jan 2026 20:58:04 -0500 Subject: [PATCH 1/2] Add `$template` macro --- include/rsl/macro | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/rsl/macro b/include/rsl/macro index 3b8ece6..ef9e9c6 100644 --- a/include/rsl/macro +++ b/include/rsl/macro @@ -23,10 +23,9 @@ */ #define $os_is(os) (RSL_OS == RSL_OS_##os) -// feature macro helper +/// feature macro helper #define $uses_opt(x) USES_OPT(x) -// attributes /** * @param: one of always, never */ @@ -63,4 +62,7 @@ */ #define $for_each(macro, ...) RSL_IMPL_FOR_EACH_DELIM(macro, RSL_IMPL_DELIM_NONE, __VA_ARGS__) -#define $diagnostics(op, ...) RSL_DIAG_##op (__VA_ARGS__) \ No newline at end of file +#define $diagnostics(op, ...) RSL_DIAG_##op (__VA_ARGS__) + +/// Introduces an explicit template region +#define $template template for (char _ : "") From 9fc1d93dc7d8aab836a8198d7274f11f5d542465 Mon Sep 17 00:00:00 2001 From: Matthias Wippich Date: Fri, 16 Jan 2026 03:08:41 +0100 Subject: [PATCH 2/2] use auto --- include/rsl/macro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rsl/macro b/include/rsl/macro index ef9e9c6..37e7e37 100644 --- a/include/rsl/macro +++ b/include/rsl/macro @@ -65,4 +65,4 @@ #define $diagnostics(op, ...) RSL_DIAG_##op (__VA_ARGS__) /// Introduces an explicit template region -#define $template template for (char _ : "") +#define $template template for (auto _ : "")