My problem is as follows:
I have a string literal that is macro-ed like so
#define TITLE "Title"
But there are instances when I need to pass in a wide char variant of this string. I want to be able to pass L"Title"
to those functions. So naturally, I set out trying to define a new macro W_TITLE
in terms of TITLE
.
But I have no luck, all my approaches (listed bellow) have failed. Please tell me how such magic can be accomplished.
I tried
#define W_TITLE L##TITLE
#define W_TITLE #L TITLE
#define W_TITLE ##L TITLE
But they all fail...