PP: Restore a line of code deleted by commit bb63bd5e3792455b77ce93e471158bed0cc884f0.
authorJohn Kessenich <cepheus@frii.com>
Thu, 17 Sep 2015 00:23:20 +0000 (18:23 -0600)
committerJohn Kessenich <cepheus@frii.com>
Thu, 17 Sep 2015 00:23:20 +0000 (18:23 -0600)
glslang/Include/revision.h
glslang/MachineIndependent/preprocessor/Pp.cpp

index 570012a..c75c6ba 100644 (file)
@@ -2,5 +2,5 @@
 // For the version, it uses the latest git tag followed by the number of commits.
 // For the date, it uses the current date (when then script is run).
 
-#define GLSLANG_REVISION "3.0.769"
+#define GLSLANG_REVISION "3.0.770"
 #define GLSLANG_DATE "16-Sep-2015"
index 63dede7..406767a 100644 (file)
@@ -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;