Skip to content

Commit abd20fe

Browse files
committed
fix
1 parent f57d201 commit abd20fe

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

simplecpp.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1994,14 +1994,17 @@ namespace simplecpp {
19941994

19951995
if (nameTokInst->str() == "__FILE__") {
19961996
output.push_back(new Token('\"'+output.file(loc)+'\"', loc));
1997+
output.back()->macro = "__FILE__";
19971998
return nameTokInst->next;
19981999
}
19992000
if (nameTokInst->str() == "__LINE__") {
20002001
output.push_back(new Token(toString(loc.line), loc));
2002+
output.back()->macro = "__LINE__";
20012003
return nameTokInst->next;
20022004
}
20032005
if (nameTokInst->str() == "__COUNTER__") {
20042006
output.push_back(new Token(toString(usageList.size()-1U), loc));
2007+
output.back()->macro = "__COUNTER__";
20052008
return nameTokInst->next;
20062009
}
20072010

0 commit comments

Comments
 (0)