There was an error while loading. Please reload this page.
1 parent f57d201 commit abd20feCopy full SHA for abd20fe
1 file changed
simplecpp.cpp
@@ -1994,14 +1994,17 @@ namespace simplecpp {
1994
1995
if (nameTokInst->str() == "__FILE__") {
1996
output.push_back(new Token('\"'+output.file(loc)+'\"', loc));
1997
+ output.back()->macro = "__FILE__";
1998
return nameTokInst->next;
1999
}
2000
if (nameTokInst->str() == "__LINE__") {
2001
output.push_back(new Token(toString(loc.line), loc));
2002
+ output.back()->macro = "__LINE__";
2003
2004
2005
if (nameTokInst->str() == "__COUNTER__") {
2006
output.push_back(new Token(toString(usageList.size()-1U), loc));
2007
+ output.back()->macro = "__COUNTER__";
2008
2009
2010
0 commit comments