#define COUNT_PARMS(...) \
COUNT_PARMS2(11 , ## __VA_ARGS__, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0)
- #define FN_ARGS ...
+ /**
+ * usage:
+ * #define foo_init(...) PP_CAT(foo_init_, COUNT_PARMS(__VA_ARGS__)) (__VA_ARGS__)
+ */
#else
#define COUNT_PARMS2(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _, ...) _
#define COUNT_PARMS(args...) \
COUNT_PARMS2(11 , ## args, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0)
- #define FN_ARGS args...
+ /**
+ * usage:
+ * #define foo_init(args...) PP_CAT(foo_init_, COUNT_PARMS(args)) (args)
+ */
+
#endif
#if defined(__IAR_SYSTEMS_ICC) || defined(__IAR_SYSTEMS_ICC__)