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:
chenxiaoyi
2025-09-22 11:05:50 +08:00
committed by Xiang Xiao
parent 34e8267fcc
commit 397e7e7a4f
+2 -2
View File
@@ -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 */