0

With a C++ preprocessor directive I would need to achieve something like this:

std :: cout << wrapinquotes(hithere) << std :: endl;

and get hithere printed out. I tried naively doing something like

#define wrapinquotes(x) "x"

but as you can easily imagine, I got an x printed out. Is there any way to achieve this?

Brian Tompsett - 汤莱恩
  • 5,438
  • 68
  • 55
  • 126
Matteo Monti
  • 7,566
  • 17
  • 58
  • 107

0 Answers0