mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 14:58:13 +08:00
macro: use portable variadic macros
The old implementation used a GCC extension related to variadic macros, where a name prepends the ellipsis, which has portability issues. Signed-off-by: chenxiaoyi <chenxiaoyi@xiaomi.com>
This commit is contained in:
@@ -51,8 +51,8 @@
|
||||
|
||||
/* Expand the arguments */
|
||||
|
||||
#define EXPAND_(x...) x
|
||||
#define EXPAND(x...) EXPAND_(x)
|
||||
#define EXPAND_(...) __VA_ARGS__
|
||||
#define EXPAND(...) EXPAND_(__VA_ARGS__)
|
||||
|
||||
/* Reverse the arguments */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user