0

I have a macro like

LOG_I(_module, _message, ...)

I need to create a wrapper to this macro

#define WRAPPER_LOG(_module, _message, ...) LOG_I(_module, _message, ...)

How can I achieve this ?

too honest for this site
  • 12,050
  • 4
  • 30
  • 52
apoorvn
  • 43
  • 5

1 Answers1

1

It would work if you did

#define WRAPPER_LOG(_module, _message, ...) LOG_I(_module, _message, __VA_ARGS__)

but whether it is what you really need, is another matter.

Iharob Al Asimi
  • 52,653
  • 6
  • 59
  • 97