DescriptionUse 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
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278299
Patch Set 1 #
Messages
Total messages: 5 (0 generated)
|