Can we use recursive macro to create varadic max/min?

前端 未结 0 1264
误落风尘
误落风尘 2021-02-08 09:52

Need max/min with unknown num of params, like #define MAX_N(first, second, remain...) MAX_N(((first)>(second)?(first):(second)), ##remain)

In my

相关标签:
回答
  • 消灭零回复
提交回复
热议问题