|
24 | 24 | */ |
25 | 25 | #define $os_is(os) (RSL_OS == RSL_OS_##os) |
26 | 26 |
|
27 | | -/// feature macro helper |
| 27 | +/// Feature macro helper |
28 | 28 | #define $uses_opt(x) USES_OPT(x) |
29 | 29 |
|
30 | 30 | /** |
31 | | - * @param: one of always, never |
| 31 | + * @param opt: one of always, never |
32 | 32 | */ |
33 | | -#define $inline(...) RSL_INLINE(__VA_ARGS__) |
| 33 | +#define $inline(opt) RSL_INLINE(opt) |
34 | 34 |
|
35 | | -/** Enable this overload if expr evaluates to true. Clang only. |
36 | | - * @param expr |
37 | | - */ |
| 35 | +/// Enable this overload if a given expression evaluates to true. Clang only. |
38 | 36 | #define $enable_if(...) RSL_ENABLE_IF(__VA_ARGS__) |
39 | 37 |
|
40 | 38 | //! Workaround for expansion statements in GCC |
41 | 39 | #define $define_static_array(...) RSL_DEFINE_STATIC_ARRAY(__VA_ARGS__) |
42 | 40 |
|
43 | 41 | /** Applies `macro` to every element and inserts delimiters produced by `delim` between elements |
44 | | - * @param macro function-like macro applied to every element |
45 | | - * @param delim function-like macro producing the delimiter |
46 | | - * @param ... elements to loop over |
| 42 | + * @param macro: function-like macro applied to every element |
| 43 | + * @param delim: function-like macro producing the delimiter |
| 44 | + * @param ...: elements to loop over |
47 | 45 | */ |
48 | 46 | #define $for_each_delim(macro, delim, ...) RSL_IMPL_FOR_EACH_DELIM(macro, delim, __VA_ARGS__) |
49 | 47 |
|
50 | 48 | /** Applies `macro` to every element and inserts commas between elements |
51 | | - * @param macro function-like macro applied to every element |
52 | | - * @param ... elements to loop over |
| 49 | + * @param macro: function-like macro applied to every element |
| 50 | + * @param ...: elements to loop over |
53 | 51 | */ |
54 | 52 | #define $for_each_list(macro, ...) RSL_IMPL_FOR_EACH_DELIM(macro, RSL_IMPL_DELIM_COMMA, __VA_ARGS__) |
55 | 53 |
|
56 | 54 | /** Applies `macro` to every element |
57 | | - * @param macro function-like macro applied to every element |
58 | | - * @param ... elements to loop over |
| 55 | + * @param macro: function-like macro applied to every element |
| 56 | + * @param ...: elements to loop over |
59 | 57 | */ |
60 | 58 | #define $for_each(macro, ...) RSL_IMPL_FOR_EACH_DELIM(macro, RSL_IMPL_DELIM_NONE, __VA_ARGS__) |
61 | 59 |
|
| 60 | +/** |
| 61 | + * @param op: one of push, pop, disable, error |
| 62 | + * @param ...: optional arguments |
| 63 | +*/ |
62 | 64 | #define $diagnostics(op, ...) RSL_DIAG_##op (__VA_ARGS__) |
63 | 65 |
|
64 | 66 | /// Introduces an explicit template region |
|
0 commit comments