Skip to content

Commit 22134a7

Browse files
authored
Merge pull request #31 from Eczbek/patch-1
Add `$template` macro
2 parents c0ad37c + 9fc1d93 commit 22134a7

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

include/rsl/macro

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@
2323
*/
2424
#define $os_is(os) (RSL_OS == RSL_OS_##os)
2525

26-
// feature macro helper
26+
/// feature macro helper
2727
#define $uses_opt(x) USES_OPT(x)
2828

29-
// attributes
3029
/**
3130
* @param: one of always, never
3231
*/
@@ -63,4 +62,7 @@
6362
*/
6463
#define $for_each(macro, ...) RSL_IMPL_FOR_EACH_DELIM(macro, RSL_IMPL_DELIM_NONE, __VA_ARGS__)
6564

66-
#define $diagnostics(op, ...) RSL_DIAG_##op (__VA_ARGS__)
65+
#define $diagnostics(op, ...) RSL_DIAG_##op (__VA_ARGS__)
66+
67+
/// Introduces an explicit template region
68+
#define $template template for (auto _ : "")

0 commit comments

Comments
 (0)