Re: [PATCH v1 1/1] ASoC: soc.h: replace custom COUNT_ARGS() & CONCATENATE() implementations
From: Kuninori Morimoto
Date: Mon Sep 04 2023 - 18:45:37 EST
Hi
> Replace custom implementation of the macros from args.h.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
(snip)
> -#define SND_SOC_DAILINK_REGx(_1, _2, _3, func, ...) func
> #define SND_SOC_DAILINK_REG(...) \
> - SND_SOC_DAILINK_REGx(__VA_ARGS__, \
> - SND_SOC_DAILINK_REG3, \
> - SND_SOC_DAILINK_REG2, \
> - SND_SOC_DAILINK_REG1)(__VA_ARGS__)
> + CONCATENATE(SND_SOC_DAILINK_REG, COUNT_ARGS(__VA_ARGS__))(__VA_ARGS__)
Interesting nice macro !
Reviewed-by: Kuninori Morimoto <kuninori.morimoto.gx@xxxxxxxxxxx>
Thank you for your help !!
Best regards
---
Kuninori Morimoto