| ... | @@ -262,7 +262,9 @@ static void parse_string_literal(ParseContext *pc, Token *token, Buf *buf, bool | ... | @@ -262,7 +262,9 @@ static void parse_string_literal(ParseContext *pc, Token *token, Buf *buf, bool |
| 262 | uint8_t c1 = *((uint8_t*)buf_ptr(pc->buf) + token->start_pos); | 262 | uint8_t c1 = *((uint8_t*)buf_ptr(pc->buf) + token->start_pos); |
| 263 | uint8_t c2 = *((uint8_t*)buf_ptr(pc->buf) + token->start_pos + 1); | 263 | uint8_t c2 = *((uint8_t*)buf_ptr(pc->buf) + token->start_pos + 1); |
| 264 | assert(c1 == 'r'); | 264 | assert(c1 == 'r'); |
| 265 | *out_c_str = (c2 == 'c'); | 265 | if (out_c_str) { |
| | 266 | *out_c_str = (c2 == 'c'); |
| | 267 | } |
| 266 | const char *str = buf_ptr(pc->buf) + token->raw_string_start; | 268 | const char *str = buf_ptr(pc->buf) + token->raw_string_start; |
| 267 | buf_init_from_mem(buf, str, token->raw_string_end - token->raw_string_start); | 269 | buf_init_from_mem(buf, str, token->raw_string_end - token->raw_string_start); |
| 268 | return; | 270 | return; |