Skip to content

Commit dfd2f2c

Browse files
committed
lltok [skip ci]
1 parent 6ec767b commit dfd2f2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

simplecpp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -838,8 +838,8 @@ void simplecpp::TokenList::readfile(Stream &stream, const std::string &filename,
838838
TokenString currentToken;
839839

840840
if (cback() && cback()->location.line == location.line && cback()->previous && cback()->previous->op == '#') {
841-
const Token* const llTok = lastLineTok();
842-
if (llTok && llTok->op == '#' && llTok->next && (llTok->next->str() == "error" || llTok->next->str() == "warning")) {
841+
const Token* const ppTok = cback()->previous;
842+
if (ppTok->next && (ppTok->next->str() == "error" || ppTok->next->str() == "warning")) {
843843
char prev = ' ';
844844
while (stream.good() && (prev == '\\' || (ch != '\r' && ch != '\n'))) {
845845
currentToken += ch;

0 commit comments

Comments
 (0)