I'm trying out macros. Discovered that reading in a string literal with an escaped character in it treats the backslash and code as separate units! Like a string with "\0" in it will have its parsed form one character than expected, because it's a backslash followed by the numeral 0 instead of the NUL byte. Is there some initializer (or other technique) in String that will resolve backslash sequences to the encoded character instead of each character of the code separately?
Are you looking for representedLiteralValue?
1 Like