Use L###macro_arg instead of L#macro_arg to make a wide string literal
MSVC lexes L#macro_arg as a single wide string literal after pre-processing. Clang and other conforming C preprocessors lex this as a single 'L' token followed by a normal string literal. Using L###macro_arg works with all compilers. It should be parsed as 'L' '##' '#' 'macro_arg', where '#' stringizes the macro arg and '##' token pastes the two tokens together to form a single string literal. R=dtseng@chromium.org CC=thakis@chromium.org,hans@chromium.org BUG=82385 Review URL: https://codereview.chromium.org/342773004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278299 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment