diff options
Diffstat (limited to 'src/libs/cplusplus/pp-macro-expander.cpp')
-rw-r--r-- | src/libs/cplusplus/pp-macro-expander.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libs/cplusplus/pp-macro-expander.cpp b/src/libs/cplusplus/pp-macro-expander.cpp index 74457244a3..9efc8c91f7 100644 --- a/src/libs/cplusplus/pp-macro-expander.cpp +++ b/src/libs/cplusplus/pp-macro-expander.cpp @@ -180,6 +180,17 @@ const char *MacroExpander::expand(const char *__first, const char *__last, __result->append(__first, next_pos - __first); __first = next_pos; } + else if (*__first == '\\') + { + ++__first; + if (__first != __last && *__first == '\n') + { + ++lines; + ++__first; + } else { + __result->append('\\'); + } + } else if (comment_p (__first, __last)) { __first = skip_comment_or_divop (__first, __last); |