diff options
| author | Donald Lee <dlqs@gmx.com> | 2021-06-25 00:05:37 +0800 |
|---|---|---|
| committer | Donald Lee <dlqs@gmx.com> | 2021-06-25 17:29:15 +0800 |
| commit | 19eee398d4f25af835837894b276e2a1796a98f5 (patch) | |
| tree | 52427d36b5a784d89140e70094b116b20e025fdd /lib/compiler.h | |
| parent | 951f0849761f39dc5e60612b493612c3cf6de568 (diff) | |
lib: add comments for functions
Signed-off-by: Donald Lee <dlqs@gmx.com>
Diffstat (limited to 'lib/compiler.h')
| -rw-r--r-- | lib/compiler.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/compiler.h b/lib/compiler.h index 155ffc6003..a6fd858518 100644 --- a/lib/compiler.h +++ b/lib/compiler.h @@ -174,11 +174,10 @@ extern "C" { MACRO_VARIANT(_MACRO_REPEAT, ##__VA_ARGS__)(NAME, ##__VA_ARGS__) /* per-arglist repeat macro, use like this: - * #define SEP_SEMICOLON ; - * #define foo(...) MAP_LISTS(F, SEP_SEMICOLON, ##__VA_ARGS__) + * #define foo(...) MAP_LISTS(F, ##__VA_ARGS__) * where F is a n-ary function where n is the number of args in each arglist. - * e.g.: MAP_LISTS(f, SEP_SEMICOLON, (a, b), (c, d, e)) - * expands to: f(a, b); f(c, d, e) + * e.g.: MAP_LISTS(f, (a, b), (c, d)) + * expands to: f(a, b); f(c, d) */ #define ESC(...) __VA_ARGS__ @@ -196,6 +195,7 @@ extern "C" { ESC(M _1; M _2; M _3; M _4; M _5; M _6; M _7) #define _MAP_LISTS_8(M, _1, _2, _3, _4, _5, _6, _7, _8) \ ESC(M _1; M _2; M _3; M _4; M _5; M _6; M _7; M _8) + /* * for warnings on macros, put in the macro content like this: * #define MACRO BLA CPP_WARN("MACRO has been deprecated") |
