2

I'm trying to stringize the argument of a macro such that it will give unicode string i.e. I want to do get the following :

WIDEN(4>5)  L"4>5"

And my macro is this :

#define WIDEN(x) L #x

Unfortunately doesn't work. How to do this?

1 Answer 1

5

You want to use e.g. the pre-processors contatenating operator ##:

#define WIDEN(x)  L ## #x
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.