!139 修复hook模块在c99编译标准下编译出错

Merge pull request !139 from Zhaotianyu/0520hook_fix
This commit is contained in:
openharmony_ci 2021-05-20 17:07:39 +08:00 committed by Gitee
commit 6e1fb96998
1 changed files with 4 additions and 2 deletions

View File

@ -61,8 +61,10 @@
#define PARAM_TO_ARGS6(a, b, c, d, e, f) ARG(a), PARAM_TO_ARGS5(b, c, d, e, f) #define PARAM_TO_ARGS6(a, b, c, d, e, f) ARG(a), PARAM_TO_ARGS5(b, c, d, e, f)
#define PARAM_TO_ARGS7(a, b, c, d, e, f, g) ARG(a), PARAM_TO_ARGS6(b, c, d, e, f, g) #define PARAM_TO_ARGS7(a, b, c, d, e, f, g) ARG(a), PARAM_TO_ARGS6(b, c, d, e, f, g)
#define __NARGS(a, b, c, d, e, f, g, h, n, ...) n #define _ZERO_ARGS 7, 6, 5, 4, 3, 2, 1, 0
#define _NARGS(...) __NARGS(x, ##__VA_ARGS__, 7, 6, 5, 4, 3, 2, 1, 0, ) #define ___NARGS(a, b, c, d, e, f, g, h, n, ...) n
#define __NARGS(...) ___NARGS(__VA_ARGS__)
#define _NARGS(...) __NARGS(x, __VA_ARGS__##_ZERO_ARGS, 7, 6, 5, 4, 3, 2, 1, 0)
#define __CONCAT(a, b) a##b #define __CONCAT(a, b) a##b
#define _CONCAT(a, b) __CONCAT(a, b) #define _CONCAT(a, b) __CONCAT(a, b)