Could be possible to call a macro with a different amount of params?

前端 未结 0 1590
逝去的感伤
逝去的感伤 2020-11-30 04:21

I have the following macro that works for this case:

#define logger(p) loggerImpl(p, #p)

void loggerImpl(int paramValue, const std::string paramName) {
   st         


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