Skip to content

Commit 40158a4

Browse files
Update simplecpp.cpp
1 parent dcc0380 commit 40158a4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

simplecpp.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2019,7 +2019,13 @@ namespace simplecpp {
20192019

20202020
tok = tok->next;
20212021
if (tok == endToken2) {
2022-
output.push_back(new Token(*tok->previous));
2022+
if (tok) {
2023+
output.push_back(new Token(*tok->previous));
2024+
}
2025+
else {
2026+
output.push_back(new Token(*nameTokInst));
2027+
output.back()->setstr("\"\"");
2028+
}
20232029
break;
20242030
}
20252031
if (tok->op == '#') {

0 commit comments

Comments
 (0)