PP: Restore a line of code deleted by commit bb63bd5e37.
This commit is contained in:
parent
b56a26ab4d
commit
b9cd3996c7
2 changed files with 2 additions and 1 deletions
|
|
@ -1011,6 +1011,7 @@ int TPpContext::MacroExpand(int atom, TPpToken* ppToken, bool expandUndef, bool
|
|||
case PpAtomFileMacro: {
|
||||
if (parseContext.getCurrentLoc().name)
|
||||
parseContext.ppRequireExtensions(ppToken->loc, 1, &E_GL_GOOGLE_cpp_style_line_directive, "filename-based __FILE__");
|
||||
ppToken->ival = parseContext.getCurrentLoc().string;
|
||||
sprintf(ppToken->name, "%s", ppToken->loc.getStringNameOrNum().c_str());
|
||||
UngetToken(PpAtomConstInt, ppToken);
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue